Finish migrating user state over to MobX.

This commit is contained in:
Paul
2021-07-29 15:51:19 +01:00
parent 4dffaad6c1
commit f8611ddea5
11 changed files with 286 additions and 255 deletions

View File

@@ -21,7 +21,7 @@ export const Username = observer(
let username = user?.username;
let color;
// ! FIXME: this must be really bad for perf.
/* // ! FIXME: this must be really bad for perf.
if (user) {
let { server } = useParams<{ server?: string }>();
if (server) {
@@ -44,7 +44,7 @@ export const Username = observer(
}
}
}
}
} */
return (
<span {...otherProps} style={{ color }}>