1import React, { useCallback } from 'react';
2import { Just } from 'folktale/maybe';
3import * as need from 'lib/need';
4import { Grid } from 'indigo-react';
6import { usePointCursor } from 'store/pointCursor';
7// import { usePointCache } from 'store/pointCache';
9import View from 'components/View';
10import Passport from 'components/Passport';
11import { ForwardButton } from 'components/Buttons';
13import useInvites from 'lib/useInvites';
14import { ROUTE_NAMES } from 'lib/routeNames';
16import { useHistory } from 'store/history';
17import { useWallet } from 'store/wallet';
18import FooterButton from 'components/FooterButton';
20export default function Admin() {
21 const history = useHistory();
22 const { urbitWallet } = useWallet();
23 const { pointCursor } = usePointCursor();
24 // const { pointCache } = usePointCache();
26 const point = need.point(pointCursor);
28 // fetch the invites for the current cursor
29 const { availableInvites } = useInvites(point);
31 const goRedownload = useCallback(() => history.push(ROUTE_NAMES.REDOWNLOAD), [
35 const goReticket = useCallback(() => history.push(ROUTE_NAMES.RETICKET), [
39 // const pointDetails = need.fromPointCache(pointCache, point);
41 const canDownloadPassport = Just.hasInstance(urbitWallet);
45 <Grid className="pt2">
48 disabled={!canDownloadPassport}
49 onClick={goRedownload}
50 detail="Re-download your paper wallet">
58 detail="//TODO disable if not logged in as owner">
64 <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