on bc552c8 help sign in
bridge/src/views/Landing.js
55 lines 1.4 kB history raw
1import React from 'react';
2import { H1, P } from 'indigo-react';
4import { useHistory } from '../store/history';
5import useImpliedPoint from 'lib/useImpliedPoint';
6import useImpliedTicket from 'lib/useImpliedTicket';
8import View from 'components/View';
9import { ForwardButton } from 'components/Buttons';
11function Landing() {
12 const { push, names } = useHistory();
14 const impliedPoint = useImpliedPoint();
15 const impliedTicket = useImpliedTicket();
16 if (impliedPoint) {
17 push(names.LOGIN);
18 } else if (impliedTicket) {
19 push(names.ACTIVATE);
20 }
22 return (
23 <View>
24 <H1>Welcome</H1>
26 <P>
27 Bridge is a tool for managing and viewing assets on Azimuth, the Urbit
28 address space.
29 </P>
31 <ForwardButton
32 className="mt3"
33 detail="If you were sent an Azimuth invite code."
34 onClick={() => push(names.ACTIVATE)}>
35 Activate a Point
36 </ForwardButton>
38 <ForwardButton
39 className="mt3"
40 detail="Login to an activated point."
41 onClick={() => push(names.LOGIN)}>
42 Login
43 </ForwardButton>
45 <ForwardButton
46 className="mt3"
47 detail="View an Azimuth point without signing into a wallet."
48 onClick={() => push(names.VIEW_POINT)}>
49 View a Point
50 </ForwardButton>
51 </View>
52 );
55export default Landing;