-
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: added total supply fetching, temporarily removed protocol history
- Loading branch information
1 parent
e63740b
commit 9f86d54
Showing
13 changed files
with
149 additions
and
140 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
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
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
88 changes: 45 additions & 43 deletions
88
src/app/components/protocol-history/components/protocol-history-item.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 |
---|---|---|
@@ -1,46 +1,48 @@ | ||
import { HStack, Image, Text } from "@chakra-ui/react"; | ||
import { CustomSkeleton } from "@components/custom-skeleton/custom-skeleton"; | ||
// /* eslint-disable */ | ||
|
||
interface ProtocolHistoryItem { | ||
id: string; | ||
value: string; | ||
uuid: string; | ||
date: string; | ||
} | ||
// import { HStack, Image, Text } from "@chakra-ui/react"; | ||
// import { CustomSkeleton } from "@components/custom-skeleton/custom-skeleton"; | ||
|
||
export function ProtocolHistoryItem( | ||
protocolHistoryItem: ProtocolHistoryItem, | ||
): React.JSX.Element { | ||
if (!protocolHistoryItem) return <CustomSkeleton height={"35px"} />; | ||
// interface ProtocolHistoryItem { | ||
// id: string; | ||
// value: string; | ||
// uuid: string; | ||
// date: string; | ||
// } | ||
|
||
return ( | ||
<HStack | ||
justifyContent={"space-between"} | ||
p={"10px"} | ||
w={"300px"} | ||
h={"35px"} | ||
bgGradient={"linear(to-r, background.content.01, background.content.02)"} | ||
blendMode={"screen"} | ||
border={"1px solid"} | ||
borderRadius={"md"} | ||
borderColor={"border.white.01"} | ||
> | ||
<HStack spacing={"15px"}> | ||
<Image | ||
src={"/images/logos/dlc-btc-logo.svg"} | ||
alt={"dlcBTC Logo"} | ||
boxSize={"20px"} | ||
/> | ||
<Text color={"white"} fontWeight={800}> | ||
{protocolHistoryItem.value} | ||
</Text> | ||
<Text color={"white"} fontSize={"sm"}> | ||
{protocolHistoryItem.uuid} | ||
</Text> | ||
</HStack> | ||
<Text color={"white"} fontSize={"sm"}> | ||
{protocolHistoryItem.date} | ||
</Text> | ||
</HStack> | ||
); | ||
} | ||
// export function ProtocolHistoryItem( | ||
// protocolHistoryItem: ProtocolHistoryItem, | ||
// ): React.JSX.Element { | ||
// if (!protocolHistoryItem) return <CustomSkeleton height={"35px"} />; | ||
|
||
// return ( | ||
// <HStack | ||
// justifyContent={"space-between"} | ||
// p={"10px"} | ||
// w={"300px"} | ||
// h={"35px"} | ||
// bgGradient={"linear(to-r, background.content.01, background.content.02)"} | ||
// blendMode={"screen"} | ||
// border={"1px solid"} | ||
// borderRadius={"md"} | ||
// borderColor={"border.white.01"} | ||
// > | ||
// <HStack spacing={"15px"}> | ||
// <Image | ||
// src={"/images/logos/dlc-btc-logo.svg"} | ||
// alt={"dlcBTC Logo"} | ||
// boxSize={"20px"} | ||
// /> | ||
// <Text color={"white"} fontWeight={800}> | ||
// {protocolHistoryItem.value} | ||
// </Text> | ||
// <Text color={"white"} fontSize={"sm"}> | ||
// {protocolHistoryItem.uuid} | ||
// </Text> | ||
// </HStack> | ||
// <Text color={"white"} fontSize={"sm"}> | ||
// {protocolHistoryItem.date} | ||
// </Text> | ||
// </HStack> | ||
// ); | ||
// } |
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
Oops, something went wrong.