mirror of
https://github.com/roleypoly/roleypoly.git
synced 2025-06-16 09:39:09 +00:00
fix(Editor): add empty role picker help page and link
This commit is contained in:
parent
30b9ea3a59
commit
d8cdc1c62a
5 changed files with 152 additions and 25 deletions
|
@ -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>
|
||||
);
|
||||
|
|
19
packages/web/src/pages/help/why-no-roles.tsx
Normal file
19
packages/web/src/pages/help/why-no-roles.tsx
Normal 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;
|
Loading…
Add table
Add a link
Reference in a new issue