aboutsummaryrefslogtreecommitdiff
path: root/vnext/src/ui/Contacts.js
diff options
context:
space:
mode:
authorGravatar Vitaly Takmazov2023-05-31 06:10:51 +0300
committerGravatar Vitaly Takmazov2023-05-31 06:11:05 +0300
commitf2a7ea3af919548d41383734e8a3667086a44bcc (patch)
treee0d9db07956f10ccc4e27fc9e0d45d88950dbfbb /vnext/src/ui/Contacts.js
parent395185d093b2d6bb46d02830088e00a3a2ca20c1 (diff)
eslint: enforce semicolons only before statement continuation chars
Diffstat (limited to 'vnext/src/ui/Contacts.js')
-rw-r--r--vnext/src/ui/Contacts.js24
1 files changed, 12 insertions, 12 deletions
diff --git a/vnext/src/ui/Contacts.js b/vnext/src/ui/Contacts.js
index b1f87723..1c23f042 100644
--- a/vnext/src/ui/Contacts.js
+++ b/vnext/src/ui/Contacts.js
@@ -1,23 +1,23 @@
-import { useEffect, useState } from 'react';
-import { Helmet } from 'react-helmet';
+import { useEffect, useState } from 'react'
+import { Helmet } from 'react-helmet'
-import { getChats } from '../api';
+import { getChats } from '../api'
-import Contact from './Contact.js';
-import { ChatSpinner } from './Spinner';
+import Contact from './Contact.js'
+import { ChatSpinner } from './Spinner'
/**
*
*/
export default function Contacts() {
- const [pms, setPms] = useState([]);
+ const [pms, setPms] = useState([])
useEffect(() => {
getChats()
.then(response => {
- setPms(response.data.pms);
- }).catch(console.log);
- }, []);
+ setPms(response.data.pms)
+ }).catch(console.log)
+ }, [])
return (
<div className="msg-cont">
<Helmet>
@@ -31,7 +31,7 @@ export default function Contacts() {
}
</div>
</div>
- );
+ )
}
const chatListStyle = {
@@ -39,7 +39,7 @@ const chatListStyle = {
flexDirection: 'column',
width: '100%',
padding: '12px'
-};
+}
const chatTitleStyle = {
width: '100%',
@@ -48,4 +48,4 @@ const chatTitleStyle = {
background: 'var(--main-background-color)',
color: 'var(--text-color)',
borderBottom: '1px solid var(--border-color)'
-};
+}