aboutsummaryrefslogtreecommitdiff
path: root/vnext/src/ui/Users.js
diff options
context:
space:
mode:
Diffstat (limited to 'vnext/src/ui/Users.js')
-rw-r--r--vnext/src/ui/Users.js22
1 files changed, 11 insertions, 11 deletions
diff --git a/vnext/src/ui/Users.js b/vnext/src/ui/Users.js
index 32ff2d03..e4fcba1f 100644
--- a/vnext/src/ui/Users.js
+++ b/vnext/src/ui/Users.js
@@ -1,15 +1,15 @@
-import { useState } from 'react';
-import { useParams } from 'react-router-dom';
+import { useState } from 'react'
+import { useParams } from 'react-router-dom'
-import UserInfo from './UserInfo';
-import Avatar from './Avatar';
-import { Helmet } from 'react-helmet';
+import UserInfo from './UserInfo'
+import Avatar from './Avatar'
+import { Helmet } from 'react-helmet'
/**
* Friends feed
*/
export function Friends() {
- const params = useParams();
+ const params = useParams()
return (
<>
<Helmet>
@@ -17,14 +17,14 @@ export function Friends() {
</Helmet>
<Users uname={params.user} prop='read' />
</>
- );
+ )
}
/**
* Readers feed
*/
export function Readers() {
- const params = useParams();
+ const params = useParams()
return (
<>
<Helmet>
@@ -32,7 +32,7 @@ export function Readers() {
</Helmet>
<Users uname={params.user} prop='readers' />
</>
- );
+ )
}
/**
@@ -40,7 +40,7 @@ export function Readers() {
* @param {{uname: string, prop: string}} props
*/
function Users({ uname, prop }) {
- const [user, setUser] = useState({ uid: 0, uname: uname });
+ const [user, setUser] = useState({ uid: 0, uname: uname })
return (
<UserInfo uname={uname} onUpdate={setUser}>
<div style={{ display: 'flex', flexWrap: 'wrap', flexDirection: 'row' }}>
@@ -52,5 +52,5 @@ function Users({ uname, prop }) {
}
</div>
</UserInfo>
- );
+ )
}