fix(Editor): add empty role picker help page and link

This commit is contained in:
41666 2021-07-09 04:30:34 -05:00
parent 30b9ea3a59
commit d8cdc1c62a
5 changed files with 152 additions and 25 deletions

View file

@ -6,6 +6,7 @@ import ErrorPage from '../pages/error';
import LandingPage from '../pages/landing';
import PickerPage from '../pages/picker';
const WhyNoRoles = React.lazy(() => import('../pages/help/why-no-roles'));
const ServersPage = React.lazy(() => import('../pages/servers'));
const EditorPage = React.lazy(() => import('../pages/editor'));
@ -50,6 +51,8 @@ export const AppRouter = () => {
<RouteWrapper component={DevToolsSetApi} path="/x/dev-tools/set-api" />
<RouteWrapper component={DevToolsSessionDebug} path="/x/dev-tools/session-debug" />
<RouteWrapper component={WhyNoRoles} path="/help/why-no-roles" />
<RouteWrapper component={ErrorPage} default identity={404} />
</Router>
);

View file

@ -0,0 +1,19 @@
import { WhyNoRoles } from '@roleypoly/design-system/organisms/help-why-no-roles';
import { HelpPageTemplate } from '@roleypoly/design-system/templates/help-page';
import { useAppShellProps } from '../../contexts/app-shell/AppShellContext';
import { Title } from '../../utils/metaTitle';
const WhyNoRolesPage = () => {
const appShellProps = useAppShellProps();
return (
<>
<Title title="Why can't I see my roles? - Roleypoly Help" />
<HelpPageTemplate {...appShellProps}>
<WhyNoRoles />
</HelpPageTemplate>
</>
);
};
export default WhyNoRolesPage;