mirror of
https://github.com/randyjc/Rahoot.git
synced 2026-03-14 04:25:35 +01:00
refactor(components): use arrow function syntax and improve consistency
This commit is contained in:
@@ -12,9 +12,9 @@ type Props = {
|
||||
data: CommonStatusDataMap["SHOW_RESULT"]
|
||||
}
|
||||
|
||||
export default function Result({
|
||||
const Result = ({
|
||||
data: { correct, message, points, myPoints, rank, aheadOfMe },
|
||||
}: Props) {
|
||||
}: Props) => {
|
||||
const player = usePlayerStore()
|
||||
|
||||
const [sfxResults] = useSound(SFX_RESULTS_SOUND, {
|
||||
@@ -48,3 +48,5 @@ export default function Result({
|
||||
</section>
|
||||
)
|
||||
}
|
||||
|
||||
export default Result
|
||||
|
||||
Reference in New Issue
Block a user