successful test of nugget.

This commit is contained in:
Jordan
2024-02-23 07:57:42 -08:00
parent 5c3c8a0beb
commit 5d7c53dd3c
5 changed files with 33 additions and 2 deletions

View File

@ -14,10 +14,10 @@ export default function Nugget({ text, initialScore }: { text: string, initialSc
<span className='score'>{score > 0 ? "+" + score : score}</span>
<span className='buttons'>
<ButtonGroup size="small" orientation='vertical'>
<Button onClick={() => setScore(score + 1)}>
<Button onClick={() => setScore(score + 1)} className='incScore'>
<KeyboardArrowUpIcon />
</Button>
<Button onClick={() => setScore(score - 1)}>
<Button onClick={() => setScore(score - 1)} className='decScore'>
<KeyboardArrowDownIcon />
</Button>
</ButtonGroup>