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
cb11f92e
Commit
cb11f92e
authored
Nov 24, 2022
by
tom
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
move nativeTokenAddress under currency property in config
parent
f460ed56
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
4 additions
and
4 deletions
+4
-4
config.ts
configs/app/config.ts
+1
-1
indicators.tsx
ui/home/indicators/utils/indicators.tsx
+1
-1
WatchListAddressItem.tsx
ui/watchlist/WatchlistTable/WatchListAddressItem.tsx
+2
-2
No files found.
configs/app/config.ts
View file @
cb11f92e
...
@@ -60,9 +60,9 @@ const config = Object.freeze({
...
@@ -60,9 +60,9 @@ const config = Object.freeze({
name
:
getEnvValue
(
process
.
env
.
NEXT_PUBLIC_NETWORK_CURRENCY_NAME
),
name
:
getEnvValue
(
process
.
env
.
NEXT_PUBLIC_NETWORK_CURRENCY_NAME
),
symbol
:
getEnvValue
(
process
.
env
.
NEXT_PUBLIC_NETWORK_CURRENCY_SYMBOL
),
symbol
:
getEnvValue
(
process
.
env
.
NEXT_PUBLIC_NETWORK_CURRENCY_SYMBOL
),
decimals
:
Number
(
getEnvValue
(
process
.
env
.
NEXT_PUBLIC_NETWORK_CURRENCY_DECIMALS
))
||
DEFAULT_CURRENCY_DECIMALS
,
decimals
:
Number
(
getEnvValue
(
process
.
env
.
NEXT_PUBLIC_NETWORK_CURRENCY_DECIMALS
))
||
DEFAULT_CURRENCY_DECIMALS
,
address
:
getEnvValue
(
process
.
env
.
NEXT_PUBLIC_NETWORK_TOKEN_ADDRESS
),
},
},
assetsPathname
:
getEnvValue
(
process
.
env
.
NEXT_PUBLIC_NETWORK_ASSETS_PATHNAME
),
assetsPathname
:
getEnvValue
(
process
.
env
.
NEXT_PUBLIC_NETWORK_ASSETS_PATHNAME
),
nativeTokenAddress
:
getEnvValue
(
process
.
env
.
NEXT_PUBLIC_NETWORK_TOKEN_ADDRESS
),
explorers
:
parseEnvJson
<
Array
<
NetworkExplorer
>>
(
getEnvValue
(
process
.
env
.
NEXT_PUBLIC_NETWORK_EXPLORERS
))
||
[],
explorers
:
parseEnvJson
<
Array
<
NetworkExplorer
>>
(
getEnvValue
(
process
.
env
.
NEXT_PUBLIC_NETWORK_EXPLORERS
))
||
[],
verificationType
:
process
.
env
.
NEXT_PUBLIC_NETWORK_VERIFICATION_TYPE
||
'
mining
'
,
verificationType
:
process
.
env
.
NEXT_PUBLIC_NETWORK_VERIFICATION_TYPE
||
'
mining
'
,
},
},
...
...
ui/home/indicators/utils/indicators.tsx
View file @
cb11f92e
...
@@ -34,7 +34,7 @@ const coinPriceIndicator: TChainIndicator<QueryKeys.chartsMarket> = {
...
@@ -34,7 +34,7 @@ const coinPriceIndicator: TChainIndicator<QueryKeys.chartsMarket> = {
id
:
'
coin_price
'
,
id
:
'
coin_price
'
,
title
:
`
${
appConfig
.
network
.
currency
.
symbol
}
price`
,
title
:
`
${
appConfig
.
network
.
currency
.
symbol
}
price`
,
value
:
(
stats
)
=>
'
$
'
+
Number
(
stats
.
coin_price
).
toLocaleString
(
undefined
,
{
minimumFractionDigits
:
2
,
maximumFractionDigits
:
6
}),
value
:
(
stats
)
=>
'
$
'
+
Number
(
stats
.
coin_price
).
toLocaleString
(
undefined
,
{
minimumFractionDigits
:
2
,
maximumFractionDigits
:
6
}),
icon
:
<
TokenLogo
hash=
{
appConfig
.
network
.
nativeTokenA
ddress
||
''
}
name=
{
appConfig
.
network
.
currency
.
name
}
boxSize=
{
6
}
/>,
icon
:
<
TokenLogo
hash=
{
appConfig
.
network
.
currency
.
a
ddress
||
''
}
name=
{
appConfig
.
network
.
currency
.
name
}
boxSize=
{
6
}
/>,
hint
:
`
${
appConfig
.
network
.
currency
.
symbol
}
token daily price in USD.`
,
hint
:
`
${
appConfig
.
network
.
currency
.
symbol
}
token daily price in USD.`
,
api
:
{
api
:
{
queryName
:
QueryKeys
.
chartsMarket
,
queryName
:
QueryKeys
.
chartsMarket
,
...
...
ui/watchlist/WatchlistTable/WatchListAddressItem.tsx
View file @
cb11f92e
...
@@ -20,9 +20,9 @@ const WatchListAddressItem = ({ item }: {item: TWatchlistItem}) => {
...
@@ -20,9 +20,9 @@ const WatchListAddressItem = ({ item }: {item: TWatchlistItem}) => {
<
VStack
spacing=
{
2
}
align=
"stretch"
fontWeight=
{
500
}
color=
"gray.700"
>
<
VStack
spacing=
{
2
}
align=
"stretch"
fontWeight=
{
500
}
color=
"gray.700"
>
<
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
.
nativeTokenA
ddress
&&
(
{
appConfig
.
network
.
currency
.
a
ddress
&&
(
<
TokenLogo
<
TokenLogo
hash=
{
appConfig
.
network
.
nativeTokenA
ddress
}
hash=
{
appConfig
.
network
.
currency
.
a
ddress
}
name=
{
appConfig
.
network
.
name
}
name=
{
appConfig
.
network
.
name
}
boxSize=
{
4
}
boxSize=
{
4
}
borderRadius=
"sm"
borderRadius=
"sm"
...
...
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