From 6df4eaa37d439aaa678e0b393e6bb23f06aa20f0 Mon Sep 17 00:00:00 2001 From: Ategon Dev Date: Mon, 15 Jul 2024 17:09:45 +0000 Subject: [PATCH] Pixel Whois & Header Improvements --- .../client/src/components/Header/User.tsx | 28 +++++++++---------- .../src/components/Profile/UserCard.tsx | 22 +++++++-------- 2 files changed, 25 insertions(+), 25 deletions(-) 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 && (