Commit 3c51224a authored by isstuev's avatar isstuev

add link

parent 093bb8b2
...@@ -474,6 +474,7 @@ frontend: ...@@ -474,6 +474,7 @@ frontend:
- "/stats" - "/stats"
- "/search-results" - "/search-results"
- "/tokens" - "/tokens"
- "/accounts"
resources: resources:
limits: limits:
memory: memory:
......
...@@ -323,6 +323,7 @@ frontend: ...@@ -323,6 +323,7 @@ frontend:
- "/search-results" - "/search-results"
- "/token" - "/token"
- "/tokens" - "/tokens"
- "/accounts"
resources: resources:
limits: limits:
......
...@@ -12,6 +12,7 @@ import publicTagIcon from 'icons/publictags.svg'; ...@@ -12,6 +12,7 @@ import publicTagIcon from 'icons/publictags.svg';
import statsIcon from 'icons/stats.svg'; import statsIcon from 'icons/stats.svg';
import tokensIcon from 'icons/token.svg'; import tokensIcon from 'icons/token.svg';
import transactionsIcon from 'icons/transactions.svg'; import transactionsIcon from 'icons/transactions.svg';
import walletIcon from 'icons/wallet.svg';
import watchlistIcon from 'icons/watchlist.svg'; import watchlistIcon from 'icons/watchlist.svg';
import link from 'lib/link/link'; import link from 'lib/link/link';
import useCurrentRoute from 'lib/link/useCurrentRoute'; import useCurrentRoute from 'lib/link/useCurrentRoute';
...@@ -27,6 +28,7 @@ export default function useNavItems() { ...@@ -27,6 +28,7 @@ export default function useNavItems() {
{ text: 'Blocks', url: link('blocks'), icon: blocksIcon, isActive: currentRoute.startsWith('block'), isNewUi: false }, { text: 'Blocks', url: link('blocks'), icon: blocksIcon, isActive: currentRoute.startsWith('block'), isNewUi: false },
{ text: 'Transactions', url: link('txs'), icon: transactionsIcon, isActive: currentRoute.startsWith('tx'), isNewUi: false }, { text: 'Transactions', url: link('txs'), icon: transactionsIcon, isActive: currentRoute.startsWith('tx'), isNewUi: false },
{ text: 'Tokens', url: link('tokens'), icon: tokensIcon, isActive: currentRoute === 'tokens', isNewUi: false }, { text: 'Tokens', url: link('tokens'), icon: tokensIcon, isActive: currentRoute === 'tokens', isNewUi: false },
{ text: 'Accounts', url: link('accounts'), icon: walletIcon, isActive: currentRoute === 'accounts', isNewUi: false },
isMarketplaceFilled ? isMarketplaceFilled ?
{ text: 'Apps', url: link('apps'), icon: appsIcon, isActive: currentRoute === 'apps', isNewUi: true } : null, { text: 'Apps', url: link('apps'), icon: appsIcon, isActive: currentRoute === 'apps', isNewUi: true } : null,
{ text: 'Charts & stats', url: link('stats'), icon: statsIcon, isActive: currentRoute === 'stats', isNewUi: false }, { text: 'Charts & stats', url: link('stats'), icon: statsIcon, isActive: currentRoute === 'stats', isNewUi: false },
......
...@@ -15,6 +15,7 @@ ...@@ -15,6 +15,7 @@
"token_instance_item": "/token/:hash/instance/:id", "token_instance_item": "/token/:hash/instance/:id",
"address_index": "/address/:id", "address_index": "/address/:id",
"address_contract_verification": "/address/:id/contract_verifications/new", "address_contract_verification": "/address/:id/contract_verifications/new",
"accounts": "/accounts",
"apps": "/apps", "apps": "/apps",
"app_index": "/apps/:id", "app_index": "/apps/:id",
"search_results": "/search-results", "search_results": "/search-results",
......
...@@ -77,6 +77,12 @@ export const ROUTES = { ...@@ -77,6 +77,12 @@ export const ROUTES = {
crossNetworkNavigation: true, crossNetworkNavigation: true,
}, },
// ACCOUNTS
accounts: {
pattern: PATHS.accounts,
crossNetworkNavigation: true,
},
// APPS // APPS
apps: { apps: {
pattern: PATHS.apps, pattern: PATHS.apps,
......
...@@ -50,7 +50,8 @@ const AddressesTableItem = ({ ...@@ -50,7 +50,8 @@ const AddressesTableItem = ({
)) : <Text lineHeight="24px">-</Text> } )) : <Text lineHeight="24px">-</Text> }
</Td> </Td>
<Td isNumeric> <Td isNumeric>
<Text lineHeight="24px" as="span">{ addressBalanceChunks[0] + '.' }</Text> <Text lineHeight="24px" as="span">{ addressBalanceChunks[0] }</Text>
{ addressBalanceChunks[1] && <Text lineHeight="24px" as="span">.</Text> }
<Text lineHeight="24px" variant="secondary" as="span">{ addressBalanceChunks[1] }</Text> <Text lineHeight="24px" variant="secondary" as="span">{ addressBalanceChunks[1] }</Text>
</Td> </Td>
{ hasPercentage && ( { hasPercentage && (
......
...@@ -24,7 +24,7 @@ const addresses: AddressesResponse = { ...@@ -24,7 +24,7 @@ const addresses: AddressesResponse = {
}, { }, {
...addressMocks.withoutName, ...addressMocks.withoutName,
tx_count: '11', tx_count: '11',
coin_balance: '123456789012000', coin_balance: '1000000000000000000',
}, },
], ],
total_supply: '25222000', total_supply: '25222000',
...@@ -51,5 +51,5 @@ test('base view +@mobile +@dark-mode', async({ mount, page }) => { ...@@ -51,5 +51,5 @@ test('base view +@mobile +@dark-mode', async({ mount, page }) => {
</TestApp>, </TestApp>,
); );
await expect(component).toHaveScreenshot(); await expect(component.locator('main')).toHaveScreenshot();
}); });
...@@ -46,5 +46,5 @@ test('base view +@dark-mode', async({ mount, page }) => { ...@@ -46,5 +46,5 @@ test('base view +@dark-mode', async({ mount, page }) => {
{ hooksConfig }, { hooksConfig },
); );
await expect(component).toHaveScreenshot(); await expect(component.locator('main')).toHaveScreenshot();
}); });
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment