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
cab7a366
Commit
cab7a366
authored
Nov 23, 2022
by
isstuev
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix watchlist padding and colors
parent
05b85400
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
9 deletions
+7
-9
WatchListAddressItem.tsx
ui/watchlist/WatchlistTable/WatchListAddressItem.tsx
+7
-9
No files found.
ui/watchlist/WatchlistTable/WatchListAddressItem.tsx
View file @
cab7a366
import
{
HStack
,
VStack
,
Text
,
Icon
,
useColorModeValue
,
Flex
}
from
'
@chakra-ui/react
'
;
import
{
HStack
,
VStack
,
Text
,
Icon
,
Flex
}
from
'
@chakra-ui/react
'
;
import
React
from
'
react
'
;
import
React
from
'
react
'
;
import
type
{
TWatchlistItem
}
from
'
types/client/account
'
;
import
type
{
TWatchlistItem
}
from
'
types/client/account
'
;
...
@@ -12,12 +12,10 @@ import CurrencyValue from 'ui/shared/CurrencyValue';
...
@@ -12,12 +12,10 @@ import CurrencyValue from 'ui/shared/CurrencyValue';
import
TokenLogo
from
'
ui/shared/TokenLogo
'
;
import
TokenLogo
from
'
ui/shared/TokenLogo
'
;
const
WatchListAddressItem
=
({
item
}:
{
item
:
TWatchlistItem
})
=>
{
const
WatchListAddressItem
=
({
item
}:
{
item
:
TWatchlistItem
})
=>
{
const
mainTextColor
=
useColorModeValue
(
'
gray.700
'
,
'
gray.50
'
);
const
infoItemsPaddingLeft
=
{
base
:
1
,
lg
:
8
};
const
infoItemsPaddingLeft
=
{
base
:
0
,
lg
:
8
};
return
(
return
(
<
VStack
spacing=
{
2
}
align=
"stretch"
fontWeight=
{
500
}
color=
"gray.700"
>
<
VStack
spacing=
{
2
}
align=
"stretch"
fontWeight=
{
500
}
>
<
AddressSnippet
address=
{
item
.
address_hash
}
/>
<
AddressSnippet
address=
{
item
.
address_hash
}
/>
<
Flex
fontSize=
"sm"
h=
{
6
}
pl=
{
infoItemsPaddingLeft
}
flexWrap=
"wrap"
alignItems=
"center"
rowGap=
{
1
}
>
<
Flex
fontSize=
"sm"
h=
{
6
}
pl=
{
infoItemsPaddingLeft
}
flexWrap=
"wrap"
alignItems=
"center"
rowGap=
{
1
}
>
{
appConfig
.
network
.
currency
.
address
&&
(
{
appConfig
.
network
.
currency
.
address
&&
(
...
@@ -40,8 +38,8 @@ const WatchListAddressItem = ({ item }: {item: TWatchlistItem}) => {
...
@@ -40,8 +38,8 @@ const WatchListAddressItem = ({ item }: {item: TWatchlistItem}) => {
</
Flex
>
</
Flex
>
{
item
.
tokens_count
&&
(
{
item
.
tokens_count
&&
(
<
HStack
spacing=
{
0
}
fontSize=
"sm"
h=
{
6
}
pl=
{
infoItemsPaddingLeft
}
>
<
HStack
spacing=
{
0
}
fontSize=
"sm"
h=
{
6
}
pl=
{
infoItemsPaddingLeft
}
>
<
Icon
as=
{
TokensIcon
}
m
arginRight=
"10px"
w=
"17px"
h=
"16px"
/>
<
Icon
as=
{
TokensIcon
}
m
r=
{
2
}
w=
"17px"
h=
"16px"
/>
<
Text
color=
{
mainTextColor
}
>
{
`Tokens:${ nbsp }`
+
item
.
tokens_count
}
</
Text
>
<
Text
>
{
`Tokens:${ nbsp }`
+
item
.
tokens_count
}
</
Text
>
{
/* api does not provide token prices */
}
{
/* api does not provide token prices */
}
{
/* <Text variant="secondary">{ `${ nbsp }($${ item.tokensUSD } USD)` }</Text> */
}
{
/* <Text variant="secondary">{ `${ nbsp }($${ item.tokensUSD } USD)` }</Text> */
}
<
Text
variant=
"secondary"
>
{
`${ nbsp }(N/A)`
}
</
Text
>
<
Text
variant=
"secondary"
>
{
`${ nbsp }(N/A)`
}
</
Text
>
...
@@ -50,8 +48,8 @@ const WatchListAddressItem = ({ item }: {item: TWatchlistItem}) => {
...
@@ -50,8 +48,8 @@ const WatchListAddressItem = ({ item }: {item: TWatchlistItem}) => {
{
/* api does not provide token prices */
}
{
/* api does not provide token prices */
}
{
/* { item.address_balance && (
{
/* { item.address_balance && (
<HStack spacing={ 0 } fontSize="sm" h={ 6 } pl={ infoItemsPaddingLeft }>
<HStack spacing={ 0 } fontSize="sm" h={ 6 } pl={ infoItemsPaddingLeft }>
<Icon as={ WalletIcon } m
arginRight="10px"
w="16px" h="16px"/>
<Icon as={ WalletIcon } m
r={ 2 }
w="16px" h="16px"/>
<Text
color={ mainTextColor }
>{ `Net worth:${ nbsp }` }</Text>
<Text>{ `Net worth:${ nbsp }` }</Text>
<Link href="#">{ `$${ item.totalUSD } USD` }</Link>
<Link href="#">{ `$${ item.totalUSD } USD` }</Link>
</HStack>
</HStack>
) } */
}
) } */
}
...
...
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