Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
F
frontend
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
vicotor
frontend
Commits
05ca4fb4
Unverified
Commit
05ca4fb4
authored
Aug 12, 2024
by
tom goriunov
Committed by
GitHub
Aug 12, 2024
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Hide toggle "Show external call data" when data is not available (#2158)
Fixes #2103
parent
cec56f19
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
11 additions
and
9 deletions
+11
-9
UserOpCallData.tsx
ui/userOp/UserOpCallData.tsx
+5
-4
UserOpDecodedCallData.tsx
ui/userOp/UserOpDecodedCallData.tsx
+6
-5
No files found.
ui/userOp/UserOpCallData.tsx
View file @
05ca4fb4
...
...
@@ -23,21 +23,22 @@ const UserOpDecodedCallData = ({ data }: Props) => {
return
null
;
}
const
toggler
=
data
.
call_data
?
(
const
toggler
=
data
.
call_data
&&
data
.
execute_call_data
?
(
<
UserOpCallDataSwitch
onChange=
{
handleSwitchChange
}
initialValue=
{
!
data
.
execute_call_data
}
isDisabled=
{
!
data
.
execute_call_data
}
initialValue=
{
false
}
ml=
{
{
base
:
3
,
lg
:
'
auto
'
}
}
/>
)
:
null
;
const
labelText
=
data
.
call_data
&&
!
data
.
execute_call_data
?
'
External call data
'
:
'
Call data
'
;
return
(
<>
<
DetailsInfoItem
.
Label
hint=
"Data that’s passed to the sender for execution"
>
Call data
{
labelText
}
</
DetailsInfoItem
.
Label
>
<
DetailsInfoItem
.
Value
>
<
RawInputData
hex=
{
callData
}
rightSlot=
{
toggler
}
/>
...
...
ui/userOp/UserOpDecodedCallData.tsx
View file @
05ca4fb4
...
...
@@ -23,21 +23,22 @@ const UserOpDecodedCallData = ({ data }: Props) => {
return
null
;
}
const
toggler
=
data
.
decoded_call_data
?
(
const
toggler
=
data
.
decoded_call_data
&&
data
.
decoded_execute_call_data
?
(
<
UserOpCallDataSwitch
onChange=
{
handleSwitchChange
}
initialValue=
{
!
data
.
decoded_execute_call_data
}
isDisabled=
{
!
data
.
decoded_execute_call_data
}
initialValue=
{
false
}
ml=
{
{
base
:
0
,
lg
:
'
auto
'
}
}
/>
)
:
null
;
const
labelText
=
data
.
call_data
&&
!
data
.
execute_call_data
?
'
Decoded external call data
'
:
'
Decoded call data
'
;
return
(
<>
<
DetailsInfoItem
.
Label
hint=
"Decoded call data"
hint=
{
labelText
}
>
Decoded call data
{
labelText
}
</
DetailsInfoItem
.
Label
>
<
DetailsInfoItem
.
Value
flexDir=
{
{
base
:
'
column
'
,
lg
:
'
row
'
}
}
...
...
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