-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #100 from boostcampwm2023/feat/scoreboard/ui
Feat/scoreboard/UI : ScoreBoard UI
- Loading branch information
Showing
5 changed files
with
14 additions
and
23 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -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 ( | ||
<ul className="my-5 flex w-full flex-col overflow-auto text-sm font-medium text-aod_text"> | ||
{scores.players.map((playerScore, index) => ( | ||
<Players key={index} playerScore={playerScore} /> | ||
))} | ||
</ul> | ||
); | ||
export default function ScoreBoard({ scores }: ScoreBoardProps) { | ||
return ( | ||
<ul className="my-5 flex w-full flex-col overflow-auto text-sm font-medium text-aod_text"> | ||
{scores.players.map((playerScore, index) => ( | ||
<Players key={index} playerScore={playerScore} /> | ||
))} | ||
</ul> | ||
); | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters