feat: jump to league for current season

This commit is contained in:
TrèsAbhi committed 2023-11-08 11:16:51 -06:00
1 parent 212aee0373
commit d08949c597
3 files changed
+105 -108

No files matched your search

+13 -11
View File
@@ -5,7 +5,7 @@ import { theme } from '../../../stitches.config';
export interface ItemProps extends ComponentProps<'div'> {
position: number;
deltaPosition?: number;
score: number;
score?: number;
deltaScore?: number;
reward?: RatingsReward;
nickname: string;
@@ -188,16 +188,18 @@ export function Item({
}
/>
)}
<span
style={{
color: highlight
? theme.colors.textHighContrast_blue
: theme.colors.textHighContrast,
fontSize: 16,
}}
>
{score.toLocaleString()}
</span>
{score !== undefined && (
<span
style={{
color: highlight
? theme.colors.textHighContrast_blue
: theme.colors.textHighContrast,
fontSize: 16,
}}
>
{score.toLocaleString()}
</span>
)}
</div>
</div>
);