-
Notifications
You must be signed in to change notification settings - Fork 905
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 #10259 from brave/wired-up-default-wallet-banner
Built/Wired up the Default Wallet Banner
- Loading branch information
Showing
14 changed files
with
140 additions
and
54 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
30 changes: 0 additions & 30 deletions
30
components/brave_wallet_ui/components/desktop/backup-warning-banner/index.tsx
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
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
33 changes: 33 additions & 0 deletions
33
components/brave_wallet_ui/components/desktop/wallet-banner/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,33 @@ | ||
import * as React from 'react' | ||
import locale from '../../../constants/locale' | ||
// Styled Components | ||
import { | ||
StyledWrapper, | ||
WarningText, | ||
BannerButton, | ||
ButtonRow | ||
} from './style' | ||
|
||
export interface Props { | ||
onClick: () => void | ||
onDismiss: () => void | ||
bannerType: 'warning' | 'danger' | ||
description: string | ||
buttonText: string | ||
} | ||
|
||
const WalletBanner = (props: Props) => { | ||
const { onDismiss, onClick, bannerType, description, buttonText } = props | ||
|
||
return ( | ||
<StyledWrapper bannerType={bannerType}> | ||
<WarningText>{description}</WarningText> | ||
<ButtonRow> | ||
<BannerButton onClick={onClick} buttonType='primary'>{buttonText}</BannerButton> | ||
<BannerButton onClick={onDismiss} buttonType='secondary'>{locale.dismissButton}</BannerButton> | ||
</ButtonRow> | ||
</StyledWrapper> | ||
) | ||
} | ||
|
||
export default WalletBanner |
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
Oops, something went wrong.