organize imports

This commit is contained in:
Nathaniel Tampus
2023-05-01 15:15:49 +08:00
parent e38420c390
commit da7b4c40a3
25 changed files with 56 additions and 46 deletions

View File

@@ -1,9 +1,10 @@
"use client";
import { useContext } from "react";
import { SessionContext } from "@/context/session";
import GamePage from "./GamePage";
import type { Game } from "@chessu/types";
import { useContext } from "react";
import GamePage from "./GamePage";
export default function GameAuthWrapper({ initialLobby }: { initialLobby: Game }) {
const session = useContext(SessionContext);

View File

@@ -10,7 +10,6 @@ import {
} from "@tabler/icons-react";
import type { FormEvent, KeyboardEvent } from "react";
import Link from "next/link";
import { SessionContext } from "@/context/session";
import { useContext, useEffect, useReducer, useRef, useState } from "react";

View File

@@ -2,6 +2,7 @@ import type { Action, CustomSquares, Lobby, Message } from "@/types";
import type { Game, User } from "@chessu/types";
import type { Dispatch, SetStateAction } from "react";
import type { Socket } from "socket.io-client";
import { syncPgn, syncSide } from "./utils";
export function initSocket(