@@ -8,7 +8,7 @@ import View from 'components/View';
88import { ForwardButton } from 'components/Buttons';
99
1010function Landing() {
11− const history = useHistory();
11+ const { push, names } = useHistory();
1212
1313 return (
1414 <View>
@@ -22,21 +22,21 @@ function Landing() {
2222 <ForwardButton
2323 className="mt3"
2424 detail="If you were sent an Azimuth invite code."
25− onClick={() => history.push(ROUTE_NAMES.ACTIVATE)}>
25+ onClick={() => push(names.ACTIVATE)}>
2626 Activate a Point
2727 </ForwardButton>
2828
2929 <ForwardButton
3030 className="mt3"
3131 detail="Login to an activated point."
32− onClick={() => history.push(ROUTE_NAMES.LOGIN)}>
32+ onClick={() => push(names.LOGIN)}>
3333 Login
3434 </ForwardButton>
3535
3636 <ForwardButton
3737 className="mt3"
3838 detail="View an Azimuth point without signing into a wallet."
39− onClick={() => history.push(ROUTE_NAMES.VIEW_POINT)}>
39+ onClick={() => push(names.VIEW_POINT)}>
4040 View a Point
4141 </ForwardButton>
4242 </View>