-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #14 from XDeFi-tech/feat/multiwallets-connection
Feat: multiwallets connection
- Loading branch information
Showing
27 changed files
with
1,148 additions
and
697 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 was deleted.
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,53 @@ | ||
import React from 'react' | ||
|
||
import styled from 'styled-components' | ||
import Column from 'src/components/Column' | ||
|
||
export const SLanding = styled(Column)`` | ||
|
||
export const SChain = styled.div` | ||
font-size: 24px; | ||
padding-bottom: 12px; | ||
color: red; | ||
` | ||
|
||
export const SAccounts = styled.div` | ||
font-size: 18px; | ||
` | ||
|
||
export const SList = styled.div` | ||
color: green; | ||
` | ||
|
||
export const SBalances = styled(SLanding)` | ||
width: 100%; | ||
display: flex; | ||
border-radius: 16px; | ||
width: 100%; | ||
border: 1px solid black; | ||
padding: 12px; | ||
& h3 { | ||
padding-top: 30px; | ||
} | ||
` | ||
|
||
const AccountsBlock = ({ | ||
chain, | ||
accounts | ||
}: { | ||
chain: string | ||
accounts: string[] | ||
}) => { | ||
return ( | ||
<SBalances> | ||
<SChain>{chain}</SChain> | ||
<SAccounts> | ||
with accounts{' '} | ||
<SList>{accounts ? accounts.join(', ') : '<not set>'}</SList> | ||
</SAccounts> | ||
</SBalances> | ||
) | ||
} | ||
|
||
export default AccountsBlock |
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.