on master help sign in
Clean up unused imports etc.
commit924e769c44cffa751578b3aeca0612cbf2d84c9e authorFang <git@fang.io> dateTue 2 Jul 2019, 19:21 (7 years ago) parentfee879f
4 files changed+3−28
src/views/Admin.js−14 src/views/Redownload.js+2−8 src/views/Reticket.js−2 src/views/Reticket/Confirm.js+1−4
src/views/Admin.js−14
@@ -1,16 +1,10 @@
11import React, { useCallback } from 'react';
22import { Just } from 'folktale/maybe';
3−import * as need from 'lib/need';
43import { Grid } from 'indigo-react';
54
6−import { usePointCursor } from 'store/pointCursor';
7−// import { usePointCache } from 'store/pointCache';
8−
95import View from 'components/View';
10−import Passport from 'components/Passport';
116import { ForwardButton } from 'components/Buttons';
127
13−import useInvites from 'lib/useInvites';
148import { ROUTE_NAMES } from 'lib/routeNames';
159
1610import { useHistory } from 'store/history';
@@ -20,13 +14,6 @@ import FooterButton from 'components/FooterButton';
2014export default function Admin() {
2115 const history = useHistory();
2216 const { urbitWallet } = useWallet();
23− const { pointCursor } = usePointCursor();
24− // const { pointCache } = usePointCache();
25−
26− const point = need.point(pointCursor);
27−
28− // fetch the invites for the current cursor
29− const { availableInvites } = useInvites(point);
3017
3118 const goRedownload = useCallback(() => history.push(ROUTE_NAMES.REDOWNLOAD), [
3219 history,
@@ -36,7 +23,6 @@ export default function Admin() {
3623 history,
3724 ]);
3825
39− // const pointDetails = need.fromPointCache(pointCache, point);
4026
4127 const canDownloadPassport = Just.hasInstance(urbitWallet);
4228
src/views/Redownload.js+2−8
@@ -1,24 +1,18 @@
1−import React, { useCallback, useState } from 'react';
1+import React, { useState } from 'react';
22import { Just, Nothing } from 'folktale/maybe';
33import * as need from 'lib/need';
4−import { Grid } from 'indigo-react';
54
65import { usePointCursor } from 'store/pointCursor';
7−// import { usePointCache } from 'store/pointCache';
86
97import View from 'components/View';
108import { DownloadButton } from 'components/Buttons';
119import PaperCollateralRenderer from 'PaperCollateralRenderer';
1210
1311import { downloadWallet } from 'lib/invite';
14−import { ROUTE_NAMES } from 'lib/routeNames';
1512
16−import { useHistory } from 'store/history';
1713import { useWallet } from 'store/wallet';
18−import FooterButton from 'components/FooterButton';
1914
20−export default function Admin() {
21− const history = useHistory();
15+export default function Redownload() {
2216 const { urbitWallet } = useWallet();
2317 const { pointCursor } = usePointCursor();
2418 const point = need.point(pointCursor);
src/views/Reticket.js−2
@@ -3,10 +3,8 @@ import { size } from 'lodash';
33import * as need from 'lib/need';
44import ob from 'urbit-ob';
55import { Just, Nothing } from 'folktale/maybe';
6−import { Grid } from 'indigo-react';
76
87import { usePointCursor } from 'store/pointCursor';
9−// import { usePointCache } from 'store/pointCache';
108
119import View from 'components/View';
1210import MiniBackButton from 'components/MiniBackButton';
src/views/Reticket/Confirm.js+1−4
@@ -7,10 +7,8 @@ import PaperCollateralRenderer from 'PaperCollateralRenderer';
77import { usePointCursor } from 'store/pointCursor';
88
99import View from 'components/View';
10−import Passport from 'components/Passport';
11−import { ForwardButton, DownloadButton } from 'components/Buttons';
10+import { ForwardButton } from 'components/Buttons';
1211
13−import { useWallet } from 'store/wallet';
1412import useLifecycle from 'lib/useLifecycle';
1513import { generateWallet } from 'lib/invite';
1614import { useLocalRouter } from 'lib/LocalRouter';
@@ -44,7 +42,6 @@ export default function Confirm({ STEP_NAMES, newWallet, storeNewWallet }) {
4442 wallet={{ [point]: generatedWallet.value }}
4543 className={'extremely-hidden'}
4644 callback={paper => {
47− console.log('done rendering');
4845 storeNewWallet(generatedWallet.value, paper);
4946 }}
5047 mode={'REGISTRATION'}