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
0859c7ff
Commit
0859c7ff
authored
Apr 28, 2023
by
Chunchi Che
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix HintNotification.tsx
parent
2aa3893b
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
10 additions
and
9 deletions
+10
-9
src/ui/Duel/Message/HintNotification.tsx
src/ui/Duel/Message/HintNotification.tsx
+6
-6
src/ui/Mora.tsx
src/ui/Mora.tsx
+4
-3
No files found.
src/ui/Duel/Message/HintNotification.tsx
View file @
0859c7ff
...
...
@@ -11,12 +11,12 @@ const MsgWin = ygopro.StocGameMessage.MsgWin;
const
NeosConfig
=
useConfig
();
export
const
HintNotification
=
()
=>
{
const
hintState
=
matStore
.
hint
;
const
hintS
nap
=
useSnapshot
(
matStore
.
hint
)
;
const
snap
=
useSnapshot
(
matStore
)
;
const
hintS
tate
=
snap
.
hint
;
const
currentPhase
=
matStore
.
phase
.
currentPhase
;
const
waiting
=
matStore
.
waiting
;
const
result
=
matStore
.
result
;
const
currentPhase
=
snap
.
phase
.
currentPhase
;
const
waiting
=
snap
.
waiting
;
const
result
=
snap
.
result
;
const
navigate
=
useNavigate
();
...
...
@@ -30,7 +30,7 @@ export const HintNotification = () => {
placement
:
"
bottom
"
,
});
}
},
[
hintS
nap
?
.
msg
]);
},
[
hintS
tate
.
msg
]);
useEffect
(()
=>
{
if
(
currentPhase
)
{
...
...
src/ui/Mora.tsx
View file @
0859c7ff
...
...
@@ -19,7 +19,8 @@ const {
const
Mora
=
()
=>
{
const
snapMora
=
useSnapshot
(
moraStore
);
const
snapMatInitInfo
=
useSnapshot
(
matStore
.
initInfo
);
const
snapMat
=
useSnapshot
(
matStore
);
const
meLife
=
snapMat
.
initInfo
.
me
.
life
;
const
selectHandAble
=
snapMora
.
selectHandAble
;
const
selectTpAble
=
snapMora
.
selectTpAble
;
...
...
@@ -42,10 +43,10 @@ const Mora = () => {
useEffect
(()
=>
{
// 若对局已经开始,自动跳转
if
(
snapMatInitInfo
.
me
.
l
ife
>
0
)
{
if
(
meL
ife
>
0
)
{
navigate
(
`/duel/
${
player
}
/
${
passWd
}
/
${
ip
}
`
);
}
},
[
snapMatInitInfo
.
m
e
]);
},
[
meLif
e
]);
useEffect
(()
=>
{
if
(
isAiMode
)
{
...
...
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