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
baichixing
Neos
Commits
37b4ea7f
Commit
37b4ea7f
authored
Jul 12, 2023
by
timel
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix: valtio
parent
52a18270
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
4 additions
and
5 deletions
+4
-5
src/ui/Duel/Message/SelectActionsModal/index.tsx
src/ui/Duel/Message/SelectActionsModal/index.tsx
+1
-2
src/ui/Duel/PlayMat/Bg/index.tsx
src/ui/Duel/PlayMat/Bg/index.tsx
+3
-3
No files found.
src/ui/Duel/Message/SelectActionsModal/index.tsx
View file @
37b4ea7f
...
@@ -36,7 +36,6 @@ const localStore = proxy(defaultProps);
...
@@ -36,7 +36,6 @@ const localStore = proxy(defaultProps);
export
const
SelectActionsModal
:
React
.
FC
=
()
=>
{
export
const
SelectActionsModal
:
React
.
FC
=
()
=>
{
const
{
const
{
isOpen
,
isOpen
,
isChain
,
min
,
min
,
max
,
max
,
single
,
single
,
...
@@ -51,7 +50,7 @@ export const SelectActionsModal: React.FC = () => {
...
@@ -51,7 +50,7 @@ export const SelectActionsModal: React.FC = () => {
const
onSubmit
=
(
options
:
Snapshot
<
Option
[]
>
)
=>
{
const
onSubmit
=
(
options
:
Snapshot
<
Option
[]
>
)
=>
{
const
values
=
options
.
map
((
option
)
=>
option
.
response
!
);
const
values
=
options
.
map
((
option
)
=>
option
.
response
!
);
if
(
isChain
)
{
if
(
localStore
.
isChain
)
{
sendSelectSingleResponse
(
values
[
0
]);
sendSelectSingleResponse
(
values
[
0
]);
}
else
{
}
else
{
sendSelectMultiResponse
(
values
);
sendSelectMultiResponse
(
values
);
...
...
src/ui/Duel/PlayMat/Bg/index.tsx
View file @
37b4ea7f
...
@@ -7,9 +7,9 @@ import { sendSelectPlaceResponse, ygopro } from "@/api";
...
@@ -7,9 +7,9 @@ import { sendSelectPlaceResponse, ygopro } from "@/api";
import
{
import
{
type
BlockState
,
type
BlockState
,
cardStore
,
cardStore
,
isMe
,
type
PlaceInteractivity
,
type
PlaceInteractivity
,
placeStore
,
placeStore
,
isMe
,
}
from
"
@/stores
"
;
}
from
"
@/stores
"
;
const
BgBlock
:
React
.
FC
<
const
BgBlock
:
React
.
FC
<
...
@@ -78,10 +78,10 @@ const BgRow: React.FC<{
...
@@ -78,10 +78,10 @@ const BgRow: React.FC<{
);
);
const
BgOtherBlocks
:
React
.
FC
<
{
me
?:
boolean
}
>
=
({
me
})
=>
{
const
BgOtherBlocks
:
React
.
FC
<
{
me
?:
boolean
}
>
=
({
me
})
=>
{
const
snapCards
=
useSnapshot
(
cardStore
);
useSnapshot
(
cardStore
);
const
meController
=
isMe
(
0
)
?
0
:
1
;
const
meController
=
isMe
(
0
)
?
0
:
1
;
const
judgeGlowing
=
(
zone
:
ygopro
.
CardZone
)
=>
const
judgeGlowing
=
(
zone
:
ygopro
.
CardZone
)
=>
!!
snapCards
!!
cardStore
.
at
(
zone
,
meController
)
.
at
(
zone
,
meController
)
.
reduce
((
sum
,
c
)
=>
(
sum
+=
c
.
idleInteractivities
.
length
),
0
);
.
reduce
((
sum
,
c
)
=>
(
sum
+=
c
.
idleInteractivities
.
length
),
0
);
const
glowingExtra
=
judgeGlowing
(
ygopro
.
CardZone
.
EXTRA
);
const
glowingExtra
=
judgeGlowing
(
ygopro
.
CardZone
.
EXTRA
);
...
...
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