on master help sign in
add sigil generator view and routing
commit1e5e070f8f628aaf1064d79c997d015d0c20e16a authorLiam Fitzgerald <liam@urizen.co> dateThu 9 Jan 2020, 13:04 (7 years ago) parent3bc0841
3 files changed+11−3
src/lib/router.js+2 src/views/Point.js+3−3 src/views/SigilGenerator.js+6
src/lib/router.js+2
@@ -5,6 +5,7 @@ import Senate from 'views/Senate';
55import CreateGalaxy from 'views/CreateGalaxy';
66import IssueChild from 'views/IssueChild';
77import StarRelease from 'views/Release';
8+import SigilGenerator from 'views/SigilGenerator';
89
910import Point from 'views/Point';
1011import Points from 'views/Points';
@@ -36,4 +37,5 @@ export const ROUTES = {
3637 [ROUTE_NAMES.CANCEL_TRANSFER]: CancelTransfer,
3738 [ROUTE_NAMES.INVITE_COHORT]: InviteCohort,
3839 [ROUTE_NAMES.STAR_RELEASE]: StarRelease,
40+ [ROUTE_NAMES.SIGIL_GENERATOR]: SigilGenerator,
3941};
src/views/Point.js+3−3
@@ -72,7 +72,7 @@ export default function Point() {
7272
7373 const goSenate = useCallback(() => push(names.SENATE), [push, names]);
7474
75− const goInvite = useCallback(() => push(names.INVITE), [push, names]);
75+ const goSigil = useCallback(() => push(names.SIGIL_GENERATOR), [push, names]);
7676
7777 const goCohort = useCallback(() => push(names.INVITE_COHORT), [push, names]);
7878
@@ -216,6 +216,8 @@ export default function Point() {
216216 </Grid>
217217 <Grid className="pt2">
218218 {inviteButton}
219+ <Grid.Item full as={ForwardButton} onClick={goSigil} />
220+ <Grid.Divider />
219221 <Grid.Item
220222 full
221223 as={ForwardButton}
@@ -250,8 +252,6 @@ export default function Point() {
250252 Login Code
251253 </Grid.Item>
252254 <Grid.Divider />
253− <Grid.Item full as={DownloadSigilButton} point={point} />
254− <Grid.Divider />
255255 </Grid>
256256 </View>
257257 );
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+}