on master help sign in
Redirect to login or activation page if it's implied

to be desired.

commit404abcb80a5a5cf2838922181d45bb7e33922386 authorFang <git@fang.io> dateFri 12 Jul 2019, 19:05 (7 years ago) parent1b600f8
1 file changed+8
src/views/Landing.js+8
src/views/Landing.js+8
@@ -3,6 +3,8 @@ import { H1, P } from 'indigo-react';
33
44import { ROUTE_NAMES } from '../lib/routeNames';
55import { useHistory } from '../store/history';
6+import useImpliedPoint from 'lib/useImpliedPoint';
7+import useImpliedTicket from 'lib/useImpliedTicket';
68
79import View from 'components/View';
810import { ForwardButton } from 'components/Buttons';
@@ -10,6 +12,12 @@ import { ForwardButton } from 'components/Buttons';
1012function Landing() {
1113 const { push, names } = useHistory();
1214
15+ if (useImpliedPoint()) {
16+ push(names.LOGIN);
17+ } else if (useImpliedTicket()) {
18+ push(names.ACTIVATE);
19+ }
20+
1321 return (
1422 <View>
1523 <H1>Welcome</H1>