-
Notifications
You must be signed in to change notification settings - Fork 867
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 #11785 from brave/multi-chain-accounts-page-ui
feat(wallet): Accounts Page Multi Chain UI Support
- Loading branch information
Showing
18 changed files
with
514 additions
and
150 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
11 changes: 11 additions & 0 deletions
11
components/brave_wallet_ui/assets/asset-icons/filecoin-asset-icon.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
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
24 changes: 24 additions & 0 deletions
24
components/brave_wallet_ui/assets/asset-icons/sol-asset-icon.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
50 changes: 50 additions & 0 deletions
50
...e_wallet_ui/components/desktop/popup-modals/add-account-modal/account-type-item/index.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,50 @@ | ||
import * as React from 'react' | ||
|
||
import { NavButton } from '../../../../extension' | ||
|
||
// Styled Components | ||
import { | ||
StyledWrapper, | ||
InfoColumn, | ||
Title, | ||
Description, | ||
NetworkIcon, | ||
LeftSide | ||
} from './style' | ||
|
||
export interface Props { | ||
onClickCreate: () => void | ||
icon: string | ||
title: string | ||
description: string | ||
buttonText: string | ||
} | ||
|
||
const AccountTypeItem = (props: Props) => { | ||
const { | ||
title, | ||
description, | ||
buttonText, | ||
icon, | ||
onClickCreate | ||
} = props | ||
|
||
return ( | ||
<StyledWrapper> | ||
<LeftSide> | ||
<NetworkIcon src={icon} /> | ||
<InfoColumn> | ||
<Title>{title}</Title> | ||
<Description>{description}</Description> | ||
</InfoColumn> | ||
</LeftSide> | ||
<NavButton | ||
buttonType='secondary' | ||
onSubmit={onClickCreate} | ||
text={buttonText} | ||
/> | ||
</StyledWrapper> | ||
) | ||
} | ||
|
||
export default AccountTypeItem |
49 changes: 49 additions & 0 deletions
49
...ve_wallet_ui/components/desktop/popup-modals/add-account-modal/account-type-item/style.ts
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,49 @@ | ||
import styled from 'styled-components' | ||
|
||
export const StyledWrapper = styled.div` | ||
display: flex; | ||
flex-direction: row; | ||
align-items: center; | ||
justify-content: space-between; | ||
width: 100%; | ||
height: 100px; | ||
` | ||
|
||
export const InfoColumn = styled.div` | ||
display: flex; | ||
flex-direction: column; | ||
align-items: flex-start; | ||
justify-content: column; | ||
` | ||
|
||
export const Title = styled.span` | ||
font-family: Poppins; | ||
font-size: 14px; | ||
line-height: 20px; | ||
letter-spacing: 0.01em; | ||
font-weight: 600; | ||
color: ${(p) => p.theme.color.text01}; | ||
margin-bottom: 5px; | ||
` | ||
|
||
export const Description = styled.span` | ||
font-family: Poppins; | ||
font-size: 12px; | ||
line-height: 18px; | ||
letter-spacing: 0.01em; | ||
color: ${(p) => p.theme.color.text02}; | ||
max-width: 355px; | ||
` | ||
|
||
export const NetworkIcon = styled.img` | ||
width: 45px; | ||
height: 45px; | ||
margin-right: 10px; | ||
` | ||
|
||
export const LeftSide = styled.div` | ||
display: flex; | ||
flex-direction: row; | ||
align-items: center; | ||
justify-content: flex-start; | ||
` |
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.