on master help sign in
fix: make admin keyfile button a 'redownload' button
ef914eeMatt Condon (shrugs)
src/components/DownloadKeyfileButton.js+2−1
@@ -13,6 +13,7 @@ export default function DownloadKeyfileButton({
13
13
14 // from caller
14 // from caller
15 className,
15 className,
16+ children = 'Download Arvo Keyfile',
16 ...rest
17 ...rest
17}) {
18}) {
18 return (
19 return (
@@ -26,7 +27,7 @@ export default function DownloadKeyfileButton({
26 loading={generating}
27 loading={generating}
27 onClick={download}
28 onClick={download}
28 {...rest}>
29 {...rest}>
29− Download Arvo Keyfile
30+ {children}
30 </DownloadButton>
31 </DownloadButton>
31 );
32 );
32}
33}
src/views/Admin/AdminHome.js+3−2
@@ -61,8 +61,9 @@ export default function AdminHome() {
61 full
61 full
62 as={DownloadKeyfileButton}
62 as={DownloadKeyfileButton}
63 {...keyfileBind}
63 {...keyfileBind}
64− detail="Download your Arvo Keyfile"
64+ detail="Download your Arvo Keyfile">
65− />
65+ Redownload Arvo Keyfile
66+ </Grid.Item>
66 <Grid.Divider />
67 <Grid.Divider />
67 <Grid.Item
68 <Grid.Item
68 full
69 full