mirror of
https://github.com/roleypoly/roleypoly.git
synced 2025-06-16 09:39:09 +00:00
fix a bunch of build issues
This commit is contained in:
parent
e35b17e685
commit
558207872d
19 changed files with 283 additions and 69 deletions
|
@ -98,6 +98,8 @@ export const EditorCategory = (props: Props) => {
|
|||
<Space />
|
||||
<Text>Roles</Text>
|
||||
<Popover
|
||||
position={'top left'}
|
||||
headContent={null}
|
||||
active={roleSearchPopoverActive}
|
||||
onExit={() => setRoleSearchPopoverActive(false)}
|
||||
>
|
||||
|
|
|
@ -9,7 +9,7 @@ type Props = {
|
|||
};
|
||||
|
||||
export const EditorShell = (props: Props) => (
|
||||
<TabView selected={0}>
|
||||
<TabView initialTab={0}>
|
||||
<Tab title="Roles">{() => <RolesTab {...props} />}</Tab>
|
||||
<Tab title="Server Details">{() => <div>hi2!</div>}</Tab>
|
||||
</TabView>
|
||||
|
|
|
@ -1,4 +1,5 @@
|
|||
import * as React from 'react';
|
||||
import { DiscordUser } from 'roleypoly/common/types';
|
||||
import { DotOverlay } from 'roleypoly/design-system/atoms/dot-overlay';
|
||||
import { Hero } from 'roleypoly/design-system/atoms/hero';
|
||||
import {
|
||||
|
@ -6,20 +7,19 @@ import {
|
|||
ErrorMessage,
|
||||
} from 'roleypoly/design-system/molecules/error-banner';
|
||||
import { AppShell } from 'roleypoly/design-system/organisms/app-shell';
|
||||
import { RoleypolyUser } from 'roleypoly/common/types';
|
||||
import { getMessageFromCode } from './errorStrings';
|
||||
|
||||
export type ErrorProps = {
|
||||
code: string | number;
|
||||
messageOverride?: ErrorMessage;
|
||||
user?: RoleypolyUser | null;
|
||||
user?: DiscordUser | null;
|
||||
};
|
||||
|
||||
export const Error = (props: ErrorProps) => {
|
||||
const messageFromCode = getMessageFromCode(props.code);
|
||||
|
||||
return (
|
||||
<AppShell user={props.user || null}>
|
||||
<AppShell user={props.user || undefined}>
|
||||
<DotOverlay />
|
||||
<Hero topSpacing={100} bottomSpacing={25}>
|
||||
<ErrorBanner message={messageFromCode} />
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue