Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
N
Neos
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Locked Files
Issues
0
Issues
0
List
Boards
Labels
Service Desk
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Security & Compliance
Security & Compliance
Dependency List
License Compliance
Packages
Packages
List
Container Registry
Analytics
Analytics
CI / CD
Code Review
Insights
Issues
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
love_飞影
Neos
Commits
24a7c1b4
Commit
24a7c1b4
authored
Mar 03, 2024
by
Chunchi Che
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'fix/auto-return' into 'main'
Fix/auto return See merge request
mycard/Neos!341
parents
091aa5e0
d52e7cdc
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
14 additions
and
0 deletions
+14
-0
src/ui/Duel/PlayMat/Menu/index.tsx
src/ui/Duel/PlayMat/Menu/index.tsx
+14
-0
No files found.
src/ui/Duel/PlayMat/Menu/index.tsx
View file @
24a7c1b4
...
...
@@ -2,6 +2,7 @@ import {
ArrowRightOutlined
,
CheckOutlined
,
CloseCircleFilled
,
LogoutOutlined
,
MessageFilled
,
StepForwardFilled
,
}
from
"
@ant-design/icons
"
;
...
...
@@ -16,6 +17,7 @@ import {
Tooltip
,
}
from
"
antd
"
;
import
{
cloneElement
,
useEffect
,
useState
}
from
"
react
"
;
import
{
useNavigate
}
from
"
react-router-dom
"
;
import
{
useSnapshot
}
from
"
valtio
"
;
import
{
...
...
@@ -68,6 +70,8 @@ export const Menu = () => {
[],
);
const
navigate
=
useNavigate
();
useEffect
(()
=>
{
const
endResponse
=
[
PhaseType
.
BATTLE_START
,
...
...
@@ -147,6 +151,9 @@ export const Menu = () => {
].
map
((
item
,
i
)
=>
({
key
:
i
,
...
item
}));
const
globalDisable
=
!
matStore
.
isMe
(
currentPlayer
);
const
onExit
=
()
=>
navigate
(
"
/match
"
);
return
(
<
div
className=
{
styles
[
"
menu-container
"
]
}
>
<
DropdownWithTitle
...
...
@@ -185,6 +192,13 @@ 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
>
);
};
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment