Skip to content

Commit 2264962

Browse files
authored
Merge pull request #83 from jonallamas/develop
poc(page): badge for testnet on Dashboard
2 parents 49b41be + c179ab4 commit 2264962

File tree

1 file changed

+17
-2
lines changed

1 file changed

+17
-2
lines changed

src/pages/dashboard.tsx

Lines changed: 17 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
import { useState, useEffect } from 'react';
22
import Head from 'next/head';
3+
import { Text as TextDemo } from '@chakra-ui/react';
34
import { ArrowDown, ArrowUp } from 'react-feather';
45

56
import { useAccount } from '../context/Account';
@@ -90,8 +91,22 @@ const Dashboard = ({ price }) => {
9091
<Container size='small'>
9192
{/* Balance */}
9293
<Flex direction='column' align='center'>
93-
<Text size='small'>Su balance</Text>
94-
<Divider y={4} />
94+
<Flex justify='center' align='center' gap={8}>
95+
<Text size='small'>Su balance</Text>
96+
{/* POC */}
97+
<TextDemo
98+
bg='terciary15'
99+
color='terciary'
100+
p='4px 12px'
101+
borderRadius={99}
102+
fontSize='12px'
103+
fontWeight={'bold'}
104+
textTransform={'uppercase'}
105+
>
106+
Testnet
107+
</TextDemo>
108+
</Flex>
109+
<Divider y={16} />
95110
<Text fontSize={32} isBold>
96111
${formatPrice(Number(total).toFixed(2), 2)}
97112
</Text>

0 commit comments

Comments
 (0)