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