Commit c32e9f48 authored by Chunchi Che's avatar Chunchi Che

rename Login component to Match component

parent 1920c417
...@@ -23,7 +23,7 @@ const { ...@@ -23,7 +23,7 @@ const {
automation: { isAiMode }, automation: { isAiMode },
} = useConfig(); } = useConfig();
export default function Login() { export default function Match() {
const [player, setPlayer] = useState(defaultPlayer); const [player, setPlayer] = useState(defaultPlayer);
const [passWd, setPasswd] = useState(defaultPassword); const [passWd, setPasswd] = useState(defaultPassword);
const [ip, setIp] = useState(`${serverConfig[0].ip}:${serverConfig[0].port}`); const [ip, setIp] = useState(`${serverConfig[0].ip}:${serverConfig[0].port}`);
......
...@@ -3,7 +3,7 @@ import { Route, Routes } from "react-router-dom"; ...@@ -3,7 +3,7 @@ import { Route, Routes } from "react-router-dom";
import LazyLoad, { Loading } from "./LazyLoad"; import LazyLoad, { Loading } from "./LazyLoad";
const Login = React.lazy(() => import("./Login")); const Match = React.lazy(() => import("./Match"));
const WaitRoom = React.lazy(() => import("./WaitRoom")); const WaitRoom = React.lazy(() => import("./WaitRoom"));
const Mora = React.lazy(() => import("./Mora")); const Mora = React.lazy(() => import("./Mora"));
const NeosDuel = React.lazy(() => import("./Duel/Main")); const NeosDuel = React.lazy(() => import("./Duel/Main"));
...@@ -13,7 +13,7 @@ const SSO = React.lazy(() => import("./Sso")); ...@@ -13,7 +13,7 @@ const SSO = React.lazy(() => import("./Sso"));
export default function () { export default function () {
return ( return (
<Routes> <Routes>
<Route path="/" element={<LazyLoad lazy={<Login />} />} /> <Route path="/match" element={<LazyLoad lazy={<Match />} />} />
<Route <Route
path="/room/:player/:passWd/:ip" path="/room/:player/:passWd/:ip"
element={ 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