diff --git a/packages/extension-ui/src/Popup/Accounts/index.tsx b/packages/extension-ui/src/Popup/Accounts/index.tsx index e21b2b5d057..f5af6ed2e0b 100644 --- a/packages/extension-ui/src/Popup/Accounts/index.tsx +++ b/packages/extension-ui/src/Popup/Accounts/index.tsx @@ -12,54 +12,21 @@ import { MediaContext, AddAccount, ButtonArea, - Svg + Svg, + Title } from '../../components'; import Account from './Account'; import styled from 'styled-components'; -const ButtonWithSubtitle = styled(Button)` - - button { - padding-top: 0; - padding-bottom: 0; - } - h4 { - margin: 0; - font-weight: 600; - font-size: 15px; - line-height: 20px; - } - p { - margin: 0; - font-weight: 400; - font-size: 12px; - line-height: 16px; - } -`; - -const QrButton = styled(Button)` - width: 60px; - - ${Svg} { - width: 20px; - height: 20px; - } -`; - -const AccountsArea = styled.div` - height: 100%; - overflow: scroll; -`; - type Props = {}; export default function Accounts (): React.ReactElement { const accounts = useContext(AccountContext); const mediaAllowed = useContext(MediaContext); - return ( <>
+ Accounts { (accounts.length === 0) ? { ); } + +const ButtonWithSubtitle = styled(Button)` + button { + padding-top: 0; + padding-bottom: 0; + } + h4 { + margin: 0; + font-weight: 600; + font-size: 15px; + line-height: 20px; + } + p { + margin: 0; + font-weight: 400; + font-size: 12px; + line-height: 16px; + } +`; + +const QrButton = styled(Button)` + width: 60px; + + ${Svg} { + width: 20px; + height: 20px; + } +`; + +const AccountsArea = styled.div` + height: 100%; + overflow: scroll; +`; diff --git a/packages/extension-ui/src/Popup/Export.tsx b/packages/extension-ui/src/Popup/Export.tsx index 79571409855..f7462696a82 100644 --- a/packages/extension-ui/src/Popup/Export.tsx +++ b/packages/extension-ui/src/Popup/Export.tsx @@ -5,7 +5,7 @@ import React, { useContext, useState } from 'react'; import { RouteComponentProps, withRouter } from 'react-router'; -import { ActionContext, Address, Button, InputWithLabel, Warning } from '../components'; +import { ActionContext, Address, Button, InputWithLabel, Title, Warning } from '../components'; import { exportAccount } from '../messaging'; import { Back } from '../partials'; @@ -37,6 +37,7 @@ function Export ({ match: { params: { address } } }: Props): React.ReactElement< return (
+ Export account
You are exporting your account. Keep it safe and don't share it with anyone. + Forget account
You are about to remove the account. This means that you will not be able to access it via this extension anymore. If you wish to recover it, you would need to use the seed.