-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
37 changed files
with
1,038 additions
and
795 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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,36 @@ | ||
import { Box, Flex } from "@chakra-ui/react"; | ||
|
||
export interface InfoColOptions { | ||
left: string; | ||
right: string; | ||
} | ||
|
||
interface InfoColProps { | ||
optionsArr: InfoColOptions[]; | ||
isMint?: boolean; | ||
} | ||
|
||
function InfoCol({ optionsArr, isMint }: InfoColProps) { | ||
return ( | ||
<Flex | ||
direction="column" | ||
w="full" | ||
border="1px solid F7F7F7" | ||
borderRadius="8px" | ||
px={3} | ||
py={2} | ||
bg="rgba(97,106,97,0.04)" | ||
> | ||
{optionsArr.map(({ left, right }, idx) => ( | ||
<Flex key={idx} justify="space-between" fontSize="11px" my={1}> | ||
<Box color="gray.600">{left}</Box> | ||
<Box color={isMint ? "mint" : "gray.800"} fontWeight="medium"> | ||
{right} | ||
</Box> | ||
</Flex> | ||
))} | ||
</Flex> | ||
); | ||
} | ||
|
||
export default InfoCol; |
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,22 @@ | ||
import { Box, Flex, Skeleton } from "@chakra-ui/react"; | ||
|
||
interface InfoColSkeletonProps { | ||
leftArr: string[]; | ||
} | ||
|
||
function InfoColSkeleton({ leftArr }: InfoColSkeletonProps) { | ||
return ( | ||
<Flex direction="column" w="full"> | ||
{leftArr.map((text, idx) => ( | ||
<Flex key={idx} justify="space-between" fontSize="11px" my={1}> | ||
<Box color="gray.600">{text}</Box> | ||
<Box w="36px" h="20px"> | ||
<Skeleton>1</Skeleton> | ||
</Box> | ||
</Flex> | ||
))} | ||
</Flex> | ||
); | ||
} | ||
|
||
export default InfoColSkeleton; |
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
Oops, something went wrong.