diff --git a/src/app/tools/player-stats/[id]/page.tsx b/src/app/tools/player-stats/[id]/page.tsx index e9cf1fc02..4d41b0f56 100644 --- a/src/app/tools/player-stats/[id]/page.tsx +++ b/src/app/tools/player-stats/[id]/page.tsx @@ -1,27 +1,23 @@ 'use client'; -import { ExclamationTriangleIcon } from '@radix-ui/react-icons'; import { Box, - Callout, Flex, Heading, Link, Popover, - Tabs, Text, + Theme, } from '@radix-ui/themes'; import { useState } from 'react'; import { BkniIndicator } from '../../../../components/BkniIndicator'; import { DatePicker } from '../../../../components/DatePicker'; -import PageWrapper from '../../../../components/PageWrapper'; import { getAccountInfo } from '../../../../core/blitz/getAccountInfo'; import { getClanAccountInfo } from '../../../../core/blitz/getClanAccountInfo'; import { idToRegion } from '../../../../core/blitz/idToRegion'; import { parseBkni } from '../../../../core/blitzkit/parseBkni'; import { useAwait } from '../../../../hooks/useAwait'; import strings from '../../../../lang/en-US.json'; -import { FlippedTrigger } from './components/FlippedTrigger'; import * as styles from './page.css'; export default function Page({ params }: { params: { id: string } }) { @@ -39,12 +35,12 @@ export default function Page({ params }: { params: { id: string } }) { ); const stats = [ ['Winrate', '70%'], - ['Damage', '3,203'], - ['Damage ratio', '2.45'], - ['Tier', '9.83'], ['Survival', '70%'], - ['Accuracy', '91%'], + ['Damage', '3,203'], + ['Tier', '9.83'], ['Kills', '1.54'], + ['Damage ratio', '2.45'], + ['Accuracy', '91%'], ]; const [customTo, setCustomTo] = useState(new Date()); const [fromSelectorOpen, setFromSelectorOpen] = useState(false); @@ -52,16 +48,118 @@ export default function Page({ params }: { params: { id: string } }) { return ( <> - + + + + {accountInfo.nickname} + + + {clanAccountInfo?.clan && `[${clanAccountInfo.clan.tag}] • `} + { + (clanAccountInfo?.clan + ? strings.common.regions.short + : strings.common.regions.normal)[region] + } + + + {/* + + + + */} + + + + + + + + {stats.map((stat) => ( + + {stat[1]} + + {stat[0]} + + + ))} + + + + {period === 'custom' && ( + + From{' '} + + + + {customFrom.toLocaleString(undefined, { + month: 'short', + day: 'numeric', + year: 'numeric', + })} + + + + + { + setCustomFrom(date); + setFromSelectorOpen(false); + }} + /> + + {' '} + to{' '} + + + + {customTo.toLocaleString(undefined, { + month: 'short', + day: 'numeric', + year: 'numeric', + })} + + + + + { + setCustomTo(date); + setToSelectorOpen(false); + }} + /> + + + + )} + + + + + + {/* - - - {accountInfo.nickname} + - - {clanAccountInfo?.clan && `[${clanAccountInfo.clan.tag}] • `} - { - (clanAccountInfo?.clan - ? strings.common.regions.short - : strings.common.regions.normal)[region] - } - - - - - - - - - {period === 'custom' && ( - - From{' '} - - - - {customFrom.toLocaleString(undefined, { - month: 'short', - day: 'numeric', - year: 'numeric', - })} - - - - - { - setCustomFrom(date); - setFromSelectorOpen(false); - }} - /> - - {' '} - to{' '} - - - - {customTo.toLocaleString(undefined, { - month: 'short', - day: 'numeric', - year: 'numeric', - })} - - - - - { - setCustomTo(date); - setToSelectorOpen(false); - }} - /> - - - - )} - - - 72% - Winrate - - - - {stats.map((stat) => ( - - {stat[1]} - - {stat[0]} - - - ))} - + @@ -208,7 +206,7 @@ export default function Page({ params }: { params: { id: string } }) { - {isTracking && } + {isTracking && } */} ); }