diff --git a/client/src/components/ScoreBoardModal/Players.tsx b/client/src/components/ScoreBoardModal/Players.tsx index 3e995ae..6ca1a24 100644 --- a/client/src/components/ScoreBoardModal/Players.tsx +++ b/client/src/components/ScoreBoardModal/Players.tsx @@ -1,11 +1,11 @@ import { PlayerScoreType } from '../../types/ScoreType'; -import { Result } from './Result'; +import Result from './Result'; interface PlayersProps { playerScore: PlayerScoreType; } -export function Players({ playerScore }: PlayersProps) { +export default function Players({ playerScore }: PlayersProps) { return (
  • {playerScore.name}
    diff --git a/client/src/components/ScoreBoardModal/Result.tsx b/client/src/components/ScoreBoardModal/Result.tsx index 5a8db4b..fa2ef48 100644 --- a/client/src/components/ScoreBoardModal/Result.tsx +++ b/client/src/components/ScoreBoardModal/Result.tsx @@ -6,7 +6,7 @@ interface ResultProps { result: ResultType; } -export function Result({ result }: ResultProps) { +export default function Result({ result }: ResultProps) { return (
    {result === ResultType.CORRECT ? ( diff --git a/client/src/components/ScoreBoardModal/ScoreBoard.tsx b/client/src/components/ScoreBoardModal/ScoreBoard.tsx index 7f75ac1..58885d2 100644 --- a/client/src/components/ScoreBoardModal/ScoreBoard.tsx +++ b/client/src/components/ScoreBoardModal/ScoreBoard.tsx @@ -1,16 +1,16 @@ import { ScoreType } from '../../types/ScoreType'; -import { Players } from './Players'; +import Players from './Players'; interface ScoreBoardProps { - scores: ScoreType; + scores: ScoreType; } -export function ScoreBoard({ scores }: ScoreBoardProps) { - return ( - - ); +export default function ScoreBoard({ scores }: ScoreBoardProps) { + return ( + + ); } diff --git a/client/src/components/ScoreBoardModal/ScoreBoardModal.tsx b/client/src/components/ScoreBoardModal/ScoreBoardModal.tsx index 6a08bc9..127a79c 100644 --- a/client/src/components/ScoreBoardModal/ScoreBoardModal.tsx +++ b/client/src/components/ScoreBoardModal/ScoreBoardModal.tsx @@ -1,9 +1,8 @@ import { ResultType, ScoreType } from '../../types/ScoreType'; import mockScoresData from '../../../public/mocks/Scores.json'; -import { ScoreBoard } from './ScoreBoard'; +import ScoreBoard from './ScoreBoard'; import { FaChartSimple } from 'react-icons/fa6'; - const mockScores: ScoreType = { players: mockScoresData.players.map((player) => ({ ...player, @@ -28,5 +27,3 @@ export default function ScoreBoardModal() {
    ); } - - diff --git a/client/src/routes.tsx b/client/src/routes.tsx index ac007c9..5482a78 100644 --- a/client/src/routes.tsx +++ b/client/src/routes.tsx @@ -6,7 +6,6 @@ import Home from './pages/Home.tsx'; import NotFound from './pages/NotFound.tsx'; import Lobby from './pages/Lobby.tsx'; import Room from './pages/Room.tsx'; -import ScoreBoardModal from './components/ScoreBoardModal/ScoreBoardModal.tsx'; export const router = createBrowserRouter([ { @@ -35,11 +34,6 @@ export const router = createBrowserRouter([ ), }, - // ScoreBoardModal - { - path: '/scoreboard', - element: , - }, ], }, ]);