Add Account
You currently don't have any accounts. Either create a new account or if you have an existing account you wish to use, import it with the seed phrase.
diff --git a/packages/extension-ui/src/components/Address.tsx b/packages/extension-ui/src/components/Address.tsx
index df47252517..0f6d553eec 100644
--- a/packages/extension-ui/src/components/Address.tsx
+++ b/packages/extension-ui/src/components/Address.tsx
@@ -75,28 +75,31 @@ function Address ({ address, className, children, genesisHash, name, actions }:
const theme = ((chain && chain.icon) || 'polkadot') as 'polkadot';
- return
-
-
-
-
- {name || (account && account.name) || ''}
- {formatted || ''}
-
- {actions &&
- <>
- setShowActionsMenu(!showActionsMenu)} ref={actionsRef}>
- {showActionsMenu ? : }
-
- {showActionsMenu && {actions} }
- >}
-
- {children}
+ return (
+
+
+
+
+
+ {name || (account && account.name) || ''}
+ {formatted || ''}
+
+ {actions && (
+ <>
+ setShowActionsMenu(!showActionsMenu)} ref={actionsRef}>
+ {showActionsMenu ? : }
+
+ {showActionsMenu && {actions} }
+ >
+ )}
+
+ {children}
+
-
;
+ );
}
export const AccountInfoRow = styled.div`
diff --git a/packages/extension-ui/src/components/Button.tsx b/packages/extension-ui/src/components/Button.tsx
index ac827b81ef..ed5e786b1b 100644
--- a/packages/extension-ui/src/components/Button.tsx
+++ b/packages/extension-ui/src/components/Button.tsx
@@ -28,7 +28,11 @@ function Button ({ children, className, isDisabled, onClick, to }: Props): React
};
return (
-
+
{children}
);
diff --git a/packages/extension-ui/src/components/ButtonWithSubtitle.tsx b/packages/extension-ui/src/components/ButtonWithSubtitle.tsx
index c2073f3f74..d461decf3a 100644
--- a/packages/extension-ui/src/components/ButtonWithSubtitle.tsx
+++ b/packages/extension-ui/src/components/ButtonWithSubtitle.tsx
@@ -1,3 +1,7 @@
+// Copyright 2019 @polkadot/extension-ui authors & contributors
+// This software may be modified and distributed under the terms
+// of the Apache-2.0 license. See the LICENSE file for details.
+
import React from 'react';
import { Button } from '.';
import styled from 'styled-components';
diff --git a/packages/extension-ui/src/components/Checkbox.tsx b/packages/extension-ui/src/components/Checkbox.tsx
index aed6ce45f5..0a8eaae317 100644
--- a/packages/extension-ui/src/components/Checkbox.tsx
+++ b/packages/extension-ui/src/components/Checkbox.tsx
@@ -14,13 +14,19 @@ interface Props {
}
function Checkbox ({ onChange, label, className, checked }: Props): React.ReactElement {
- return
-
- {label}
- onChange(event.target.checked))}/>
-
-
-
;
+ return (
+
+
+ {label}
+ onChange(event.target.checked))}
+ />
+
+
+
+ );
}
export default styled(Checkbox)`
diff --git a/packages/extension-ui/src/components/Fonts.ts b/packages/extension-ui/src/components/Fonts.ts
index 8c2534c4ce..e876aebf87 100644
--- a/packages/extension-ui/src/components/Fonts.ts
+++ b/packages/extension-ui/src/components/Fonts.ts
@@ -1,3 +1,7 @@
+// Copyright 2019 @polkadot/extension-ui authors & contributors
+// This software may be modified and distributed under the terms
+// of the Apache-2.0 license. See the LICENSE file for details.
+
import { createGlobalStyle } from 'styled-components';
import NunitoregularWoff2 from '../assets/fonts/Nunitoregular.woff2';
import NunitoregularWoff from '../assets/fonts/Nunitoregular.woff';
diff --git a/packages/extension-ui/src/components/Header.tsx b/packages/extension-ui/src/components/Header.tsx
index 72fb9cbf19..eb8585e788 100644
--- a/packages/extension-ui/src/components/Header.tsx
+++ b/packages/extension-ui/src/components/Header.tsx
@@ -30,15 +30,16 @@ function Header ({ children, className, showSettings }: Props): React.ReactEleme
polkadot
- {showSettings &&
+ {showSettings && (
setShowActionsMenu(!showActionsMenu)}>
-
+
- }
- {showActionsMenu &&
-
-
-
}
+ )}
+ {showActionsMenu && (
+
+
+
+ )}
{children}
diff --git a/packages/extension-ui/src/components/Identicon.tsx b/packages/extension-ui/src/components/Identicon.tsx
index cbf4c52065..36d91d64bd 100644
--- a/packages/extension-ui/src/components/Identicon.tsx
+++ b/packages/extension-ui/src/components/Identicon.tsx
@@ -13,14 +13,16 @@ interface Props {
}
function Identicon ({ iconTheme, className, value }: Props): React.ReactElement
{
- return
-
-
;
+ return (
+
+
+
+ );
}
export default styled(Identicon)`
diff --git a/packages/extension-ui/src/components/Link.tsx b/packages/extension-ui/src/components/Link.tsx
index 217dce058d..adb9a25a19 100644
--- a/packages/extension-ui/src/components/Link.tsx
+++ b/packages/extension-ui/src/components/Link.tsx
@@ -16,9 +16,23 @@ interface Props {
function Link ({ children, className, onClick, to }: Props): React.ReactElement {
return (
- to
- ? {children}
- : {children}
+ to ? (
+
+ {children}
+
+ ) : (
+
+ {children}
+
+ )
);
}
diff --git a/packages/extension-ui/src/components/List.tsx b/packages/extension-ui/src/components/List.tsx
index 50bb85c586..ae66dceb5b 100644
--- a/packages/extension-ui/src/components/List.tsx
+++ b/packages/extension-ui/src/components/List.tsx
@@ -1,3 +1,7 @@
+// Copyright 2019 @polkadot/extension-ui authors & contributors
+// This software may be modified and distributed under the terms
+// of the Apache-2.0 license. See the LICENSE file for details.
+
import styled from 'styled-components';
export default styled.ul`
diff --git a/packages/extension-ui/src/components/Menu.tsx b/packages/extension-ui/src/components/Menu.tsx
index e7dfce2be1..662e793112 100644
--- a/packages/extension-ui/src/components/Menu.tsx
+++ b/packages/extension-ui/src/components/Menu.tsx
@@ -11,9 +11,11 @@ interface Props {
}
function Menu ({ children, className }: Props): React.ReactElement {
- return
- {children}
-
;
+ return (
+
+ {children}
+
+ );
}
export default styled(Menu)`
diff --git a/packages/extension-ui/src/components/MnemonicSeed.tsx b/packages/extension-ui/src/components/MnemonicSeed.tsx
index 2ecc74bf49..2c35db2ef5 100644
--- a/packages/extension-ui/src/components/MnemonicSeed.tsx
+++ b/packages/extension-ui/src/components/MnemonicSeed.tsx
@@ -9,6 +9,35 @@ import ActionText from '@polkadot/extension-ui/components/ActionText';
import copy from '../assets/copy.svg';
import print from '../assets/print.svg';
+interface Props {
+ seed: string;
+ onCopy: MouseEventHandler;
+ onPrint: MouseEventHandler;
+ className?: string;
+}
+
+function MnemonicSeed ({ seed, onCopy, onPrint, className }: Props): React.ReactElement {
+ return (
+
+ );
+}
+
const MnemonicText = styled(TextAreaWithLabel).attrs(() => ({
label: 'Generated 12-word mnemonic seed:',
isReadOnly: true
@@ -23,13 +52,6 @@ const MnemonicText = styled(TextAreaWithLabel).attrs(() => ({
}
`;
-interface Props {
- seed: string;
- onCopy: MouseEventHandler;
- onPrint: MouseEventHandler;
- className?: string;
-}
-
const ButtonsRow = styled.div`
display: flex;
flex-direction: row;
@@ -39,16 +61,6 @@ const ButtonsRow = styled.div`
}
`;
-function MnemonicSeed ({ seed, onCopy, onPrint, className }: Props): React.ReactElement {
- return ;
-}
-
export default styled(MnemonicSeed)`
margin-top: 21px;
`;
diff --git a/packages/extension-ui/src/components/Settings.tsx b/packages/extension-ui/src/components/Settings.tsx
index 4dee2df712..c61a0524de 100644
--- a/packages/extension-ui/src/components/Settings.tsx
+++ b/packages/extension-ui/src/components/Settings.tsx
@@ -55,7 +55,11 @@ export default function Settings (): React.ReactElement {
External QR accounts and Access
-
+
Display address format For:
diff --git a/packages/extension-ui/src/components/TextInputs.ts b/packages/extension-ui/src/components/TextInputs.ts
index ea8be90314..820861f802 100644
--- a/packages/extension-ui/src/components/TextInputs.ts
+++ b/packages/extension-ui/src/components/TextInputs.ts
@@ -1,3 +1,7 @@
+// Copyright 2019 @polkadot/extension-ui authors & contributors
+// This software may be modified and distributed under the terms
+// of the Apache-2.0 license. See the LICENSE file for details.
+
import styled, { css } from 'styled-components';
interface Props {
diff --git a/packages/extension-ui/src/components/Warning.tsx b/packages/extension-ui/src/components/Warning.tsx
index e6c35ac90c..c751c28fbe 100644
--- a/packages/extension-ui/src/components/Warning.tsx
+++ b/packages/extension-ui/src/components/Warning.tsx
@@ -14,14 +14,16 @@ interface Props {
}
function Warning ({ children, className, danger }: Props): React.ReactElement {
- return
-
-
+ return (
+
-
- {children}
-
- ;
+ );
}
const WarningImage = styled(Svg)
>`
diff --git a/packages/extension-ui/src/createView.tsx b/packages/extension-ui/src/createView.tsx
index e507c9a444..8e25ef5238 100644
--- a/packages/extension-ui/src/createView.tsx
+++ b/packages/extension-ui/src/createView.tsx
@@ -1,4 +1,4 @@
-// Copyright 2019 @polkadot/extension authors & contributors
+// Copyright 2019 @polkadot/extension-ui authors & contributors
// This software may be modified and distributed under the terms
// of the Apache-2.0 license. See the LICENSE file for details.
@@ -17,11 +17,11 @@ export default function createView (Entry: React.ComponentType, rootId = 'root')
ReactDOM.render(
-
+
-
+
diff --git a/packages/extension-ui/src/partials/Back.tsx b/packages/extension-ui/src/partials/Back.tsx
index e4f4ddf9fd..4853945994 100644
--- a/packages/extension-ui/src/partials/Back.tsx
+++ b/packages/extension-ui/src/partials/Back.tsx
@@ -16,7 +16,7 @@ function Back ({ className, to = '/' }: Props): React.ReactElement {
return (