@@ -1,16 +1,10 @@
1import React, { useCallback } from 'react';
1import React, { useCallback } from 'react';
2import { Just } from 'folktale/maybe';
2import { Just } from 'folktale/maybe';
3−import * as need from 'lib/need';
4import { Grid } from 'indigo-react';
3import { Grid } from 'indigo-react';
6−import { usePointCursor } from 'store/pointCursor';
7−// import { usePointCache } from 'store/pointCache';
9import View from 'components/View';
5import View from 'components/View';
10−import Passport from 'components/Passport';
11import { ForwardButton } from 'components/Buttons';
6import { ForwardButton } from 'components/Buttons';
13−import useInvites from 'lib/useInvites';
14import { ROUTE_NAMES } from 'lib/routeNames';
8import { ROUTE_NAMES } from 'lib/routeNames';
16import { useHistory } from 'store/history';
10import { useHistory } from 'store/history';
@@ -20,13 +14,6 @@ import FooterButton from 'components/FooterButton';
20export default function Admin() {
14export default function Admin() {
21 const history = useHistory();
15 const history = useHistory();
22 const { urbitWallet } = useWallet();
16 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), [
18 const goRedownload = useCallback(() => history.push(ROUTE_NAMES.REDOWNLOAD), [
@@ -36,7 +23,6 @@ export default function Admin() {
39− // const pointDetails = need.fromPointCache(pointCache, point);
41 const canDownloadPassport = Just.hasInstance(urbitWallet);
27 const canDownloadPassport = Just.hasInstance(urbitWallet);