-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: create initial por page with mock function (#51)
* feat: create initial por page with mock function
- Loading branch information
Showing
10 changed files
with
57 additions
and
9 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
3 changes: 1 addition & 2 deletions
3
src/app/components/mint-unmint/components/protocol-summary-stack/protocol-summary-stack.tsx
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
3 changes: 1 addition & 2 deletions
3
src/app/components/mint-unmint/components/walkthrough/walkthrough.tsx
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
10 changes: 10 additions & 0 deletions
10
src/app/components/proof-of-reserve/components/proof-of-reserve-layout.tsx
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
import { CustomCard } from '@components/how-it-works/components/custom-card'; | ||
import { HasChildren } from '@models/has-children'; | ||
|
||
export function ProofOfReserveLayout({ children }: HasChildren): React.JSX.Element { | ||
return ( | ||
<CustomCard width={'800px'} height={'150px'} padding={'30px'}> | ||
{children} | ||
</CustomCard> | ||
); | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,30 @@ | ||
import { useEffect, useState } from 'react'; | ||
|
||
import { Text, VStack } from '@chakra-ui/react'; | ||
|
||
import { ProofOfReserveLayout } from './components/proof-of-reserve-layout'; | ||
|
||
export function ProofOfReserve(): React.JSX.Element { | ||
const [content, setContent] = useState(''); | ||
|
||
useEffect(() => { | ||
fetch('http://localhost:8811/get-proof-of-reserve') | ||
.then(response => response.json()) | ||
.then(data => { | ||
setContent(data); | ||
}) | ||
.catch(error => { | ||
console.error('Error fetching data:', error); | ||
}); | ||
}, []); | ||
return ( | ||
<ProofOfReserveLayout> | ||
{ | ||
<VStack spacing={'10px'}> | ||
<Text color={'white'}>BTC Reserve</Text> | ||
<Text color={'white'}>{content}</Text> | ||
</VStack> | ||
} | ||
</ProofOfReserveLayout> | ||
); | ||
} |
1 change: 0 additions & 1 deletion
1
src/app/components/vaults-list/components/vaults-list-group-container.tsx
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
import { ProofOfReserve } from '@components/proof-of-reserve/proof-of-reserve'; | ||
import { PageLayout } from '@pages/components/page.layout'; | ||
|
||
export function ProofOfReservePage(): React.JSX.Element { | ||
return ( | ||
<PageLayout> | ||
<ProofOfReserve /> | ||
</PageLayout> | ||
); | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters