diff --git a/src/components/game-screen/Leaderboard.tsx b/src/components/game-screen/Leaderboard.tsx index 57457b3..5b6b471 100644 --- a/src/components/game-screen/Leaderboard.tsx +++ b/src/components/game-screen/Leaderboard.tsx @@ -144,7 +144,6 @@ function Leaderboard(props: Props) { ) : ( Thêm {3 - rounds.length} ván nữa đê diff --git a/src/components/game-screen/RoundsList.tsx b/src/components/game-screen/RoundsList.tsx index 4e00f8f..b6f01c6 100644 --- a/src/components/game-screen/RoundsList.tsx +++ b/src/components/game-screen/RoundsList.tsx @@ -59,7 +59,7 @@ function RoundsList(props: Props) { return ( - {rounds.length === 0 && } + {rounds.length === 0 && } {rounds.map((round, i) => { const { id, stats, timestamp } = round; diff --git a/src/components/shared/Empty.tsx b/src/components/shared/Empty.tsx index a7d97bb..3c64844 100644 --- a/src/components/shared/Empty.tsx +++ b/src/components/shared/Empty.tsx @@ -1,17 +1,20 @@ import { Box, Text } from '@mantine/core'; +const emojis = ['👀', '🫥', '🏜️', '🏝️', '💤', '🥱', '🗿', '📂', '🃏', '📜']; + interface Props { - emoji: string; title?: string; subTitle?: React.ReactNode; } function Empty(props: Props) { - const { emoji, title = 'Trống quắc', subTitle } = props; + const { title = 'Trống quắc', subTitle } = props; return ( - {emoji} + + {emojis[Math.floor(Math.random() * emojis.length)]} + {title} diff --git a/src/index.tsx b/src/index.tsx index 50554e2..57633a5 100644 --- a/src/index.tsx +++ b/src/index.tsx @@ -46,10 +46,7 @@ root.render( - + } /> } /> } /> diff --git a/src/pages/home.tsx b/src/pages/home.tsx index 8e0cf53..c367e26 100644 --- a/src/pages/home.tsx +++ b/src/pages/home.tsx @@ -36,7 +36,7 @@ function HomePage() { - {allGames.length === 0 && } + {allGames.length === 0 && } {allGames.map((x) => (