Commit 3469a976 authored by Chunchi Che's avatar Chunchi Che

add exit btn

parent 091aa5e0
Pipeline #25651 passed with stages
in 14 minutes and 5 seconds
...@@ -2,6 +2,7 @@ import { ...@@ -2,6 +2,7 @@ import {
ArrowRightOutlined, ArrowRightOutlined,
CheckOutlined, CheckOutlined,
CloseCircleFilled, CloseCircleFilled,
LogoutOutlined,
MessageFilled, MessageFilled,
StepForwardFilled, StepForwardFilled,
} from "@ant-design/icons"; } from "@ant-design/icons";
...@@ -147,6 +148,9 @@ export const Menu = () => { ...@@ -147,6 +148,9 @@ export const Menu = () => {
].map((item, i) => ({ key: i, ...item })); ].map((item, i) => ({ key: i, ...item }));
const globalDisable = !matStore.isMe(currentPlayer); const globalDisable = !matStore.isMe(currentPlayer);
const onExit = () => {};
return ( return (
<div className={styles["menu-container"]}> <div className={styles["menu-container"]}>
<DropdownWithTitle <DropdownWithTitle
...@@ -185,6 +189,9 @@ export const Menu = () => { ...@@ -185,6 +189,9 @@ export const Menu = () => {
> >
<Button icon={<CloseCircleFilled />} type="text"></Button> <Button icon={<CloseCircleFilled />} type="text"></Button>
</DropdownWithTitle> </DropdownWithTitle>
<Tooltip title="退出页面">
<Button icon={<LogoutOutlined />} 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