on master help sign in
fix: make admin keyfile button a 'redownload' button
commitef914eedf718f9cf82fc1db8040c895964401653 authorMatt Condon (shrugs) <mattgcondon@gmail.com> dateThu 18 Jul 2019, 13:29 (7 years ago) parent6ecd461
2 files changed+5−3
src/components/DownloadKeyfileButton.js+2−1 src/views/Admin/AdminHome.js+3−2
src/components/DownloadKeyfileButton.js+2−1
@@ -13,6 +13,7 @@ export default function DownloadKeyfileButton({
1313
1414 // from caller
1515 className,
16+ children = 'Download Arvo Keyfile',
1617 ...rest
1718}) {
1819 return (
@@ -26,7 +27,7 @@ export default function DownloadKeyfileButton({
2627 loading={generating}
2728 onClick={download}
2829 {...rest}>
29− Download Arvo Keyfile
30+ {children}
3031 </DownloadButton>
3132 );
3233}
src/views/Admin/AdminHome.js+3−2
@@ -61,8 +61,9 @@ export default function AdminHome() {
6161 full
6262 as={DownloadKeyfileButton}
6363 {...keyfileBind}
64− detail="Download your Arvo Keyfile"
65− />
64+ detail="Download your Arvo Keyfile">
65+ Redownload Arvo Keyfile
66+ </Grid.Item>
6667 <Grid.Divider />
6768 <Grid.Item
6869 full