-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix(dcellar-web-ui): some data issues
- Loading branch information
Showing
15 changed files
with
140 additions
and
149 deletions.
There are no files selected for viewing
This file was deleted.
Oops, something went wrong.
Large diffs are not rendered by default.
Oops, something went wrong.
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
39 changes: 39 additions & 0 deletions
39
apps/dcellar-web-ui/src/modules/wallet/components/Faucet.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,39 @@ | ||
import { runtimeEnv } from '@/base/env'; | ||
import { IconFont } from '@/components/IconFont'; | ||
import { Box, Flex, Text } from '@totejs/uikit'; | ||
|
||
export const Faucet = () => { | ||
if (runtimeEnv !== 'testnet') { | ||
return null; | ||
} | ||
return ( | ||
<Flex | ||
margin="16px auto 0" | ||
w={'484px'} | ||
h={'auto'} | ||
p={'12px 24px'} | ||
borderRadius="8px" | ||
backgroundColor="transparent" | ||
border={'1px solid readable.border'} | ||
_hover={{ | ||
bgColor: 'white', | ||
borderColor: 'brand.brand6', | ||
}} | ||
justifyContent={'space-between'} | ||
alignItems={'center'} | ||
as={'a'} | ||
target="_blank" | ||
href="https://testnet.bnbchain.org/faucet-smart" | ||
> | ||
<Box> | ||
<Text fontSize={16} fontWeight={700}> | ||
Get Testnet Tokens | ||
</Text> | ||
<Text fontSize={12} color={'readable.secondary'} marginTop={4}> | ||
Use the BNB Greenfield faucet to get testnet tokens. | ||
</Text> | ||
</Box> | ||
<IconFont type="share-b38fk167" width={16} /> | ||
</Flex> | ||
); | ||
}; |
14 changes: 3 additions & 11 deletions
14
apps/dcellar-web-ui/src/modules/wallet/components/Head.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
Oops, something went wrong.