on master help sign in
add sigil generator view and routing
1e5e070Liam Fitzgerald
src/lib/router.js+2
@@ -5,6 +5,7 @@ import Senate from 'views/Senate';
5import CreateGalaxy from 'views/CreateGalaxy';
5import CreateGalaxy from 'views/CreateGalaxy';
6import IssueChild from 'views/IssueChild';
6import IssueChild from 'views/IssueChild';
7import StarRelease from 'views/Release';
7import StarRelease from 'views/Release';
8+import SigilGenerator from 'views/SigilGenerator';
8
9
9import Point from 'views/Point';
10import Point from 'views/Point';
10import Points from 'views/Points';
11import Points from 'views/Points';
@@ -36,4 +37,5 @@ export const ROUTES = {
36 [ROUTE_NAMES.CANCEL_TRANSFER]: CancelTransfer,
37 [ROUTE_NAMES.CANCEL_TRANSFER]: CancelTransfer,
37 [ROUTE_NAMES.INVITE_COHORT]: InviteCohort,
38 [ROUTE_NAMES.INVITE_COHORT]: InviteCohort,
38 [ROUTE_NAMES.STAR_RELEASE]: StarRelease,
39 [ROUTE_NAMES.STAR_RELEASE]: StarRelease,
40+ [ROUTE_NAMES.SIGIL_GENERATOR]: SigilGenerator,
39};
41};
src/views/Point.js+3−3
@@ -72,7 +72,7 @@ export default function Point() {
72
72
73 const goSenate = useCallback(() => push(names.SENATE), [push, names]);
73 const goSenate = useCallback(() => push(names.SENATE), [push, names]);
74
74
75− const goInvite = useCallback(() => push(names.INVITE), [push, names]);
75+ const goSigil = useCallback(() => push(names.SIGIL_GENERATOR), [push, names]);
76
76
77 const goCohort = useCallback(() => push(names.INVITE_COHORT), [push, names]);
77 const goCohort = useCallback(() => push(names.INVITE_COHORT), [push, names]);
78
78
@@ -216,6 +216,8 @@ export default function Point() {
216 </Grid>
216 </Grid>
217 <Grid className="pt2">
217 <Grid className="pt2">
218 {inviteButton}
218 {inviteButton}
219+ <Grid.Item full as={ForwardButton} onClick={goSigil} />
220+ <Grid.Divider />
219 <Grid.Item
221 <Grid.Item
220 full
222 full
221 as={ForwardButton}
223 as={ForwardButton}
@@ -250,8 +252,6 @@ export default function Point() {
250 Login Code
252 Login Code
251 </Grid.Item>
253 </Grid.Item>
252 <Grid.Divider />
254 <Grid.Divider />
253− <Grid.Item full as={DownloadSigilButton} point={point} />
254− <Grid.Divider />
255 </Grid>
255 </Grid>
256 </View>
256 </View>
257 );
257 );
src/views/SigilGenerator.jsnew file+6
@@ -0,0 +1,6 @@
1+import React from 'react';
2+import { View } from 'components/View';
3+
4+export default function SigilGenerator() {
5+ return <View></View>;
6+}