1import React, { useCallback } from 'react';
2import { Just } from 'folktale/maybe';
3import { Grid } from 'indigo-react';
5import View from 'components/View';
6import { ForwardButton } from 'components/Buttons';
8import { ROUTE_NAMES } from 'lib/routeNames';
10import { useHistory } from 'store/history';
11import { useWallet } from 'store/wallet';
12import FooterButton from 'components/FooterButton';
14export default function Admin() {
15 const history = useHistory();
16 const { urbitWallet } = useWallet();
18 const goRedownload = useCallback(() => history.push(ROUTE_NAMES.REDOWNLOAD), [
22 const goReticket = useCallback(() => history.push(ROUTE_NAMES.RETICKET), [
26 const goEditPerms = useCallback(() => history.push(ROUTE_NAMES.PERMISSIONS), [
30 const canDownloadPassport = Just.hasInstance(urbitWallet);
34 <Grid className="pt3">
37 disabled={!canDownloadPassport}
38 onClick={goRedownload}
39 detail="Re-download your paper wallet">
47 detail="//TODO disable if not logged in as owner">
54 detail="Management, networking keys, etc.">
60 <FooterButton detail="Transfer this identity to a new owner" disabled>
keysesc to close
- j k
- move down, up
- enter
- open
- esc
- back, or up a level
- 1 2 3 4
- readme, files, commits, refs
- /
- filter
- y
- copy the clone command
- c
- compare the chosen commit with another (or shift-click both)
- ?
- show or hide this list