Skip to content

Commit

Permalink
fix: remove unused component
Browse files Browse the repository at this point in the history
  • Loading branch information
rozanagy committed Sep 11, 2024
1 parent 7d43ef2 commit 18ad2e6
Showing 1 changed file with 19 additions and 20 deletions.
39 changes: 19 additions & 20 deletions src/app/components/proof-of-reserve/proof-of-reserve.tsx
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import { useContext } from 'react';

import { Divider, HStack, Text } from '@chakra-ui/react';
import { Divider, HStack, Text, VStack } from '@chakra-ui/react';

Check warning on line 3 in src/app/components/proof-of-reserve/proof-of-reserve.tsx

View workflow job for this annotation

GitHub Actions / lint-eslint

'VStack' is defined but never used

Check failure on line 3 in src/app/components/proof-of-reserve/proof-of-reserve.tsx

View workflow job for this annotation

GitHub Actions / typecheck

'VStack' is declared but its value is never read.
import { ProtocolHistoryTable } from '@components/protocol-history-table/protocol-history-table';
import { Merchant } from '@models/merchant';
import { bitcoin, dlcBTC } from '@models/token';
Expand Down Expand Up @@ -33,26 +33,25 @@ export function ProofOfReserve(): React.JSX.Element {
<Text w={'100%'} color={'white'} fontSize={'6xl'} fontWeight={500}>
Proof of Reserve
</Text>
<VStack width={'100%'} gap={'100px'}>
<TokenStatsBoardLayout>
<HStack w={'100%'}>
<TokenStatsBoardTVL totalSupply={totalSupply} bitcoinPrice={bitcoinPrice} />
<Divider orientation={'vertical'} px={'15px'} height={'75px'} variant={'thick'} />
<TokenStatsBoardToken token={dlcBTC} totalSupply={totalSupply} />
<Divider orientation={'vertical'} px={'15px'} height={'75px'} variant={'thick'} />
<TokenStatsBoardToken token={bitcoin} totalSupply={proofOfReserveSum} />
</HStack>
</TokenStatsBoardLayout>
<HStack w={'100%'} gap={'20px'} alignItems={'flex-start'}>
<MerchantTableLayout>
<MerchantTableHeader />
{merchantProofOfReserves.map(item => (
<MerchantTableItem key={item.merchant.name} {...item} />
))}
</MerchantTableLayout>
<ProtocolHistoryTable items={allMintBurnEvents} />

<TokenStatsBoardLayout>
<HStack w={'100%'}>
<TokenStatsBoardTVL totalSupply={totalSupply} bitcoinPrice={bitcoinPrice} />
<Divider orientation={'vertical'} px={'15px'} height={'75px'} variant={'thick'} />
<TokenStatsBoardToken token={dlcBTC} totalSupply={totalSupply} />
<Divider orientation={'vertical'} px={'15px'} height={'75px'} variant={'thick'} />
<TokenStatsBoardToken token={bitcoin} totalSupply={proofOfReserveSum} />
</HStack>
</VStack>
</TokenStatsBoardLayout>
<HStack w={'100%'} gap={'20px'} alignItems={'flex-start'}>
<MerchantTableLayout>
<MerchantTableHeader />
{merchantProofOfReserves.map(item => (
<MerchantTableItem key={item.merchant.name} {...item} />
))}
</MerchantTableLayout>
<ProtocolHistoryTable items={allMintBurnEvents} />
</HStack>
</ProofOfReserveLayout>
);
}

0 comments on commit 18ad2e6

Please sign in to comment.