Commit 0f87a14f authored by Chunchi Che's avatar Chunchi Che

remove exit entry on Menu.tsx

parent 76de28e9
Pipeline #26986 passed with stages
in 11 minutes and 21 seconds
...@@ -2,7 +2,6 @@ import { ...@@ -2,7 +2,6 @@ import {
ArrowRightOutlined, ArrowRightOutlined,
CheckOutlined, CheckOutlined,
CloseCircleFilled, CloseCircleFilled,
LogoutOutlined,
MessageFilled, MessageFilled,
StepForwardFilled, StepForwardFilled,
} from "@ant-design/icons"; } from "@ant-design/icons";
...@@ -17,7 +16,6 @@ import { ...@@ -17,7 +16,6 @@ import {
Tooltip, Tooltip,
} from "antd"; } from "antd";
import { cloneElement, useEffect, useState } from "react"; import { cloneElement, useEffect, useState } from "react";
import { useNavigate } from "react-router-dom";
import { useSnapshot } from "valtio"; import { useSnapshot } from "valtio";
import { import {
...@@ -72,8 +70,6 @@ export const Menu = () => { ...@@ -72,8 +70,6 @@ export const Menu = () => {
[], [],
); );
const navigate = useNavigate();
useEffect(() => { useEffect(() => {
const endResponse = [ const endResponse = [
PhaseType.BATTLE_START, PhaseType.BATTLE_START,
...@@ -154,8 +150,6 @@ export const Menu = () => { ...@@ -154,8 +150,6 @@ export const Menu = () => {
const globalDisable = !matStore.isMe(currentPlayer); const globalDisable = !matStore.isMe(currentPlayer);
const onExit = () => navigate("/match");
return ( return (
<div className={styles["menu-container"]}> <div className={styles["menu-container"]}>
<DropdownWithTitle <DropdownWithTitle
...@@ -194,13 +188,6 @@ export const Menu = () => { ...@@ -194,13 +188,6 @@ export const Menu = () => {
> >
<Button icon={<CloseCircleFilled />} type="text"></Button> <Button icon={<CloseCircleFilled />} type="text"></Button>
</DropdownWithTitle> </DropdownWithTitle>
<Tooltip title="退出页面">
<Button
icon={<LogoutOutlined style={{ color: "red" }} />}
type="text"
onClick={onExit}
></Button>
</Tooltip>
</div> </div>
); );
}; };
......
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