mirror of
https://github.com/roleypoly/roleypoly.git
synced 2025-04-24 19:39:11 +00:00
* feat: add Api and Session contexts * feat(web): add machinery/new-session * feat(web): add servers page * chore(web): AppRouter spacing/ordering * feat(web): add picker, missing update-roles call for now * feat(web): add picker saves * chore: add roleTransactions tests * feat(web): add auth/login
16 lines
439 B
TypeScript
16 lines
439 B
TypeScript
import { Redirect } from '@reach/router';
|
|
import { LandingTemplate } from '@roleypoly/design-system/templates/landing';
|
|
import * as React from 'react';
|
|
import { useSessionContext } from '../session-context/SessionContext';
|
|
|
|
const Landing = () => {
|
|
const { isAuthenticated } = useSessionContext();
|
|
|
|
if (isAuthenticated) {
|
|
return <Redirect to="/servers" />;
|
|
}
|
|
|
|
return <LandingTemplate />;
|
|
};
|
|
|
|
export default Landing;
|