diff --git a/packages/client/src/components/Header/User.tsx b/packages/client/src/components/Header/User.tsx index 0df93db..f4a3d1d 100644 --- a/packages/client/src/components/Header/User.tsx +++ b/packages/client/src/components/Header/User.tsx @@ -1,23 +1,23 @@ +import { Card, User as UserElement } from "@nextui-org/react"; import { useAppContext } from "../../contexts/AppContext"; export const User = () => { const { user } = useAppContext(); return user ? ( -
-
-
{user.user.username}
-
{user.service.instance.hostname}
-
- {user.user.picture_url && ( - User Avatar - )} -
+ + + ) : ( <> ); -}; +}; \ No newline at end of file diff --git a/packages/client/src/components/Profile/UserCard.tsx b/packages/client/src/components/Profile/UserCard.tsx index a26cb99..784eb73 100644 --- a/packages/client/src/components/Profile/UserCard.tsx +++ b/packages/client/src/components/Profile/UserCard.tsx @@ -1,6 +1,6 @@ import { faMessage, faWarning } from "@fortawesome/free-solid-svg-icons"; import { FontAwesomeIcon } from "@fortawesome/react-fontawesome"; -import { Button, Link, Spinner } from "@nextui-org/react"; +import { Avatar, Button, Link, Spinner, User } from "@nextui-org/react"; import { ClientConfig } from "@sc07-canvas/lib/src/net"; import { MouseEvent, useEffect, useState } from "react"; import { toast } from "react-toastify"; @@ -74,17 +74,17 @@ export const UserCard = ({ user }: { user: IUser }) => { return (
-
- {`${user?.sub}'s + -
- {user?.display_name} - {user?.sub} -
-
+
{config && (