refactor(components): use arrow function syntax and improve consistency

This commit is contained in:
Ralex
2025-10-25 15:04:03 +02:00
parent ac486b3d7d
commit dbefaa0557
32 changed files with 351 additions and 337 deletions

View File

@@ -9,7 +9,7 @@ import { usePlayerStore } from "@rahoot/web/stores/player"
import { useRouter } from "next/navigation"
import { KeyboardEvent, useState } from "react"
export default function Username() {
const Username = () => {
const { socket } = useSocket()
const { gameId, login } = usePlayerStore()
const router = useRouter()
@@ -46,3 +46,5 @@ export default function Username() {
</Form>
)
}
export default Username