diff options
| author | nsfisis <nsfisis@gmail.com> | 2024-08-22 00:46:06 +0900 |
|---|---|---|
| committer | nsfisis <nsfisis@gmail.com> | 2024-08-22 00:59:04 +0900 |
| commit | 922bc6a1f52d8f01600e9a61ce31963075ec59a5 (patch) | |
| tree | 9fdd2c8d3d01841ca7130504b8f9261116bc45e6 /frontend/app/components/PlayerProfile.tsx | |
| parent | 43d40d375c355837de83501c3f1c122b2bf589bb (diff) | |
| download | iosdc-japan-2024-albatross-922bc6a1f52d8f01600e9a61ce31963075ec59a5.tar.gz iosdc-japan-2024-albatross-922bc6a1f52d8f01600e9a61ce31963075ec59a5.tar.zst iosdc-japan-2024-albatross-922bc6a1f52d8f01600e9a61ce31963075ec59a5.zip | |
refactor(frontend): organize PlayerInfo
Diffstat (limited to 'frontend/app/components/PlayerProfile.tsx')
| -rw-r--r-- | frontend/app/components/PlayerProfile.tsx | 27 |
1 files changed, 0 insertions, 27 deletions
diff --git a/frontend/app/components/PlayerProfile.tsx b/frontend/app/components/PlayerProfile.tsx deleted file mode 100644 index 675d77b..0000000 --- a/frontend/app/components/PlayerProfile.tsx +++ /dev/null @@ -1,27 +0,0 @@ -import { PlayerInfo as FullPlayerInfo } from "../models/PlayerInfo"; -import UserIcon from "./UserIcon"; - -type PlayerInfo = Pick<FullPlayerInfo, "displayName" | "iconPath">; - -type Props = { - playerInfo: PlayerInfo; - label: string; -}; - -export default function PlayerProfile({ playerInfo, label }: Props) { - return ( - <div className="flex flex-col gap-6 my-auto"> - <div className="flex flex-col gap-2"> - <div className="text-4xl">{label}</div> - <div className="text-6xl">{playerInfo.displayName}</div> - </div> - {playerInfo.iconPath && ( - <UserIcon - iconPath={playerInfo.iconPath} - displayName={playerInfo.displayName!} - className="w-48 h-48" - /> - )} - </div> - ); -} |
