@@ -8,7 +8,7 @@ import View from 'components/View';
8import { ForwardButton } from 'components/Buttons';
8import { ForwardButton } from 'components/Buttons';
10function Landing() {
10function Landing() {
11− const history = useHistory();
11+ const { push, names } = useHistory();
@@ -22,21 +22,21 @@ function Landing() {
22 <ForwardButton
22 <ForwardButton
23 className="mt3"
23 className="mt3"
24 detail="If you were sent an Azimuth invite code."
24 detail="If you were sent an Azimuth invite code."
25− onClick={() => history.push(ROUTE_NAMES.ACTIVATE)}>
25+ onClick={() => push(names.ACTIVATE)}>
26 Activate a Point
26 Activate a Point
27 </ForwardButton>
27 </ForwardButton>
29 <ForwardButton
29 <ForwardButton
30 className="mt3"
30 className="mt3"
31 detail="Login to an activated point."
31 detail="Login to an activated point."
32− onClick={() => history.push(ROUTE_NAMES.LOGIN)}>
32+ onClick={() => push(names.LOGIN)}>
34 </ForwardButton>
34 </ForwardButton>
36 <ForwardButton
36 <ForwardButton
37 className="mt3"
37 className="mt3"
38 detail="View an Azimuth point without signing into a wallet."
38 detail="View an Azimuth point without signing into a wallet."
39− onClick={() => history.push(ROUTE_NAMES.VIEW_POINT)}>
39+ onClick={() => push(names.VIEW_POINT)}>
40 View a Point
40 View a Point
41 </ForwardButton>
41 </ForwardButton>