diff --git a/packages/client/src/components/Header/User.tsx b/packages/client/src/components/Header/User.tsx index 0df93db36f44b99517d14c701d4c0e56ada46e32..f4a3d1d5740a793236843747e2f70d47b754b1f1 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 a26cb99fb563c1e24e0ae7272f184301243c48dd..784eb732a470a249d393700a5ddbe1de2e204ec2 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 && (