Add server avatars. Closes #52

Add identity edit menu. Closes #51
This commit is contained in:
Paul
2021-08-07 22:42:15 +01:00
parent 97816e1feb
commit 4f1ba8942f
10 changed files with 135 additions and 8 deletions

View File

@@ -11,12 +11,16 @@ import UserIcon from "./UserIcon";
export const Username = observer(
({
user,
showServerIdentity,
...otherProps
}: { user?: User } & JSX.HTMLAttributes<HTMLElement>) => {
}: {
user?: User;
showServerIdentity?: boolean;
} & JSX.HTMLAttributes<HTMLElement>) => {
let username = user?.username;
let color;
if (user) {
if (user && showServerIdentity) {
const { server } = useParams<{ server?: string }>();
if (server) {
const client = useClient();