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,10 +1,11 @@
"use client";
import { useRouter } from "next/navigation";
import type { FormEvent } from "react";
import { useState, useContext } from "react";
import { useContext, useState } from "react";
import { SessionContext } from "@/context/session";
import { createGame } from "@/lib/game";
import { useRouter } from "next/navigation";
export default function CreateGame() {
const session = useContext(SessionContext);

View File

@@ -1,10 +1,11 @@
"use client";
import { useRouter } from "next/navigation";
import type { FormEvent } from "react";
import { useState, useContext } from "react";
import { useContext, useState } from "react";
import { SessionContext } from "@/context/session";
import { fetchActiveGame } from "@/lib/game";
import { useRouter } from "next/navigation";
export default function JoinGame() {
const session = useContext(SessionContext);