Commit c32e9f48 authored by Chunchi Che's avatar Chunchi Che

rename Login component to Match component

parent 1920c417
......@@ -23,7 +23,7 @@ const {
automation: { isAiMode },
} = useConfig();
export default function Login() {
export default function Match() {
const [player, setPlayer] = useState(defaultPlayer);
const [passWd, setPasswd] = useState(defaultPassword);
const [ip, setIp] = useState(`${serverConfig[0].ip}:${serverConfig[0].port}`);
......
......@@ -3,7 +3,7 @@ import { Route, Routes } from "react-router-dom";
import LazyLoad, { Loading } from "./LazyLoad";
const Login = React.lazy(() => import("./Login"));
const Match = React.lazy(() => import("./Match"));
const WaitRoom = React.lazy(() => import("./WaitRoom"));
const Mora = React.lazy(() => import("./Mora"));
const NeosDuel = React.lazy(() => import("./Duel/Main"));
......@@ -13,7 +13,7 @@ const SSO = React.lazy(() => import("./Sso"));
export default function () {
return (
<Routes>
<Route path="/" element={<LazyLoad lazy={<Login />} />} />
<Route path="/match" element={<LazyLoad lazy={<Match />} />} />
<Route
path="/room/:player/:passWd/:ip"
element={
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment