This repository has been archived by the owner on Jul 31, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 91
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
1 parent
2e7c92e
commit 7f7c1bb
Showing
24 changed files
with
423 additions
and
613 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,21 +1,21 @@ | ||
{ | ||
"rpc": "https://rpctest.tzbeta.net", | ||
"network": "edonet", | ||
"bcd": { | ||
"api": "https://api.better-call.dev", | ||
"gui": "https://better-call.dev" | ||
}, | ||
"tzkt": { | ||
"api": "https://staging.api.edo2net.tzkt.io" | ||
}, | ||
"contracts": { | ||
"nftFaucet": "KT1Hagc5XQYzkX7HfRbUNXdi4CBfiENzbHiU", | ||
"marketplace": { | ||
"fixedPrice": { | ||
"tez": "KT1H4tMRW3o9GdPJ3r82ZC7BJiR6WgmYazUC" | ||
} | ||
} | ||
}, | ||
"ipfsApi": "https://minter-api.tqhosted.com", | ||
"ipfsGateway": "https://tqtezos.mypinata.cloud" | ||
"network": "florencenet", | ||
"rpc": "https://api.tez.ie/rpc/florencenet", | ||
"bcd": { | ||
"api": "https://api.better-call.dev", | ||
"gui": "https://better-call.dev" | ||
}, | ||
"tzkt": { | ||
"api": "https://api.florencenet.tzkt.io" | ||
}, | ||
"contracts": { | ||
"nftFaucet": "KT1DzPX2SHnviWURFUfD5NQ9FcHQVmYFuPYu", | ||
"marketplace": { | ||
"fixedPrice": { | ||
"tez": "KT1X9YgJbwhGgPcJqtvcyn6ceGeUZ7DwPsDm" | ||
} | ||
} | ||
}, | ||
"ipfsApi": "https://minter-api.tqhosted.com", | ||
"ipfsGateway": "https://tqtezos.mypinata.cloud" | ||
} |
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,52 @@ | ||
import React from 'react'; | ||
import { Flex, Text } from '@chakra-ui/react'; | ||
import { | ||
Collection | ||
} from '../../../reducer/slices/collections'; | ||
|
||
interface CollectionTabProps extends Collection { | ||
selected: boolean; | ||
onSelect: (address: string) => void; | ||
} | ||
|
||
export default function CollectionTab({ | ||
address, | ||
metadata, | ||
selected, | ||
onSelect | ||
}: CollectionTabProps) { | ||
return ( | ||
<Flex | ||
align="center" | ||
py={2} | ||
px={4} | ||
bg={selected ? 'gray.100' : 'white'} | ||
color={selected ? 'black' : 'gray.600'} | ||
_hover={{ | ||
cursor: 'pointer', | ||
color: selected ? 'black' : 'gray.800' | ||
}} | ||
onClick={() => onSelect(address)} | ||
role="group" | ||
> | ||
<Flex | ||
align="center" | ||
justify="center" | ||
w={8} | ||
h={8} | ||
bg={selected ? 'brand.blue' : 'gray.100'} | ||
color={selected ? 'white' : 'gray.400'} | ||
borderRadius="100%" | ||
fontWeight="600" | ||
_groupHover={{ | ||
bg: selected ? 'brand.blue' : 'gray.200' | ||
}} | ||
> | ||
<Text>{metadata?.name ? metadata.name[0] : '?'}</Text> | ||
</Flex> | ||
<Text pl={4} fontWeight={selected ? '600' : '600'}> | ||
{metadata?.name || address} | ||
</Text> | ||
</Flex> | ||
); | ||
} |
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.