fix a bunch of build issues

This commit is contained in:
41666 2020-12-03 10:16:15 -05:00
parent e35b17e685
commit 558207872d
19 changed files with 283 additions and 69 deletions

View file

@ -98,6 +98,8 @@ export const EditorCategory = (props: Props) => {
<Space />
<Text>Roles</Text>
<Popover
position={'top left'}
headContent={null}
active={roleSearchPopoverActive}
onExit={() => setRoleSearchPopoverActive(false)}
>

View file

@ -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>

View file

@ -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} />