mirror of
https://github.com/randyjc/Rahoot.git
synced 2026-03-13 20:15:35 +01:00
Fix EsLint config & update packages
This commit is contained in:
@@ -1,10 +1,10 @@
|
||||
import { usePlayerContext } from "@/context/player"
|
||||
import Form from "@/components/Form"
|
||||
import Button from "@/components/Button"
|
||||
import Form from "@/components/Form"
|
||||
import Input from "@/components/Input"
|
||||
import { useEffect, useState } from "react"
|
||||
import { usePlayerContext } from "@/context/player"
|
||||
import { useSocketContext } from "@/context/socket"
|
||||
import { useRouter } from "next/router"
|
||||
import { useEffect, useState } from "react"
|
||||
|
||||
export default function Username() {
|
||||
const { socket } = useSocketContext()
|
||||
@@ -13,7 +13,7 @@ export default function Username() {
|
||||
const [username, setUsername] = useState("")
|
||||
|
||||
const handleJoin = () => {
|
||||
socket.emit("player:join", { username: username, room: player.room })
|
||||
socket.emit("player:join", { username, room: player.room })
|
||||
}
|
||||
|
||||
const handleKeyDown = (event) => {
|
||||
|
||||
Reference in New Issue
Block a user