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
50912f55
Commit
50912f55
authored
Dec 21, 2022
by
tom
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix subsequent clicks on add info button
parent
1c90ea92
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
8 additions
and
5 deletions
+8
-5
AdditionalInfoButton.tsx
ui/shared/AdditionalInfoButton.tsx
+7
-4
TxsTableItem.tsx
ui/txs/TxsTableItem.tsx
+1
-1
No files found.
ui/shared/AdditionalInfoButton.tsx
View file @
50912f55
import
{
Icon
,
Center
,
useColorModeValue
,
chakra
,
Button
,
}
from
'
@chakra-ui/react
'
;
import
React
from
'
react
'
;
...
...
@@ -14,13 +14,16 @@ interface Props {
onClick
?:
()
=>
void
;
}
const
AdditionalInfoButton
=
({
isOpen
,
onClick
,
className
}:
Props
,
ref
:
React
.
ForwardedRef
<
HTML
Div
Element
>
)
=>
{
const
AdditionalInfoButton
=
({
isOpen
,
onClick
,
className
}:
Props
,
ref
:
React
.
ForwardedRef
<
HTML
Button
Element
>
)
=>
{
const
infoBgColor
=
useColorModeValue
(
'
blue.50
'
,
'
gray.600
'
);
const
infoColor
=
useColorModeValue
(
'
blue.600
'
,
'
blue.300
'
);
return
(
<
Center
<
Button
variant=
"unstyled"
display=
"inline-flex"
alignItems=
"center"
className=
{
className
}
ref=
{
ref
}
background=
{
isOpen
?
infoBgColor
:
'
unset
'
}
...
...
@@ -36,7 +39,7 @@ const AdditionalInfoButton = ({ isOpen, onClick, className }: Props, ref: React.
color=
{
infoColor
}
_hover=
{
{
color
:
'
blue.400
'
}
}
/>
</
Center
>
</
Button
>
);
};
...
...
ui/txs/TxsTableItem.tsx
View file @
50912f55
...
...
@@ -150,7 +150,7 @@ const TxsTableItem = ({ tx, showBlockInfo, currentAddress }: Props) => {
</
Td
>
</
Hide
>
<
Td
isNumeric
>
<
CurrencyValue
value=
{
tx
.
value
}
/>
<
CurrencyValue
value=
{
tx
.
value
}
accuracy=
{
8
}
/>
</
Td
>
<
Td
isNumeric
>
<
CurrencyValue
value=
{
tx
.
fee
.
value
}
accuracy=
{
8
}
/>
...
...
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