fix storybooks

This commit is contained in:
41666 2020-12-05 03:40:18 -05:00
parent 75882f4331
commit e35b17e685
9 changed files with 22 additions and 29 deletions

View file

@ -1,5 +1,5 @@
import * as React from 'react';
import { FeatureFlagDecorator } from 'roleypoly/src/common/utils/featureFlags/react/storyDecorator';
import { FeatureFlagDecorator } from 'roleypoly/common/utils/featureFlags/react/storyDecorator';
import { FeatureGate } from './FeatureGate';
export default {

View file

@ -2,7 +2,7 @@ import * as React from 'react';
import {
FeatureFlag,
FeatureFlagsContext,
} from 'roleypoly/src/common/utils/featureFlags/react';
} from 'roleypoly/common/utils/featureFlags/react';
export type FeatureGateProps = {
featureFlag: FeatureFlag;

View file

@ -1,7 +1,7 @@
import styled, { css } from 'styled-components';
import * as _ from 'styled-components'; // eslint-disable-line no-duplicate-imports
import { palette } from 'roleypoly/src/design-system/atoms/colors';
import { transitions } from 'roleypoly/src/design-system/atoms/timings';
import { palette } from 'roleypoly/design-system/atoms/colors';
import { transitions } from 'roleypoly/design-system/atoms/timings';
export const Item = styled.div<{ selected: boolean }>`
padding: 10px;

View file

@ -1,20 +1,13 @@
import * as React from 'react';
import { HorizontalSwitch } from 'roleypoly/src/design-system/atoms/horizontal-switch';
import { Space } from 'roleypoly/src/design-system/atoms/space';
import {
TextInput,
TextInputWithIcon,
} from 'roleypoly/src/design-system/atoms/text-input';
import { Text } from 'roleypoly/src/design-system/atoms/typography';
import { Popover } from 'roleypoly/src/design-system/atoms/popover';
import { FaderOpacity } from 'roleypoly/src/design-system/atoms/fader';
import { RoleSearch } from 'roleypoly/src/design-system/molecules/role-search';
import {
Category,
CategoryType,
Role as RoleType,
} from 'roleypoly/src/design-system/shared-types';
import { Role } from 'roleypoly/src/design-system/atoms/role';
import { HorizontalSwitch } from 'roleypoly/design-system/atoms/horizontal-switch';
import { Space } from 'roleypoly/design-system/atoms/space';
import { TextInput, TextInputWithIcon } from 'roleypoly/design-system/atoms/text-input';
import { Text } from 'roleypoly/design-system/atoms/typography';
import { Popover } from 'roleypoly/design-system/atoms/popover';
import { FaderOpacity } from 'roleypoly/design-system/atoms/fader';
import { RoleSearch } from 'roleypoly/design-system/molecules/role-search';
import { Category, CategoryType, Role as RoleType } from 'roleypoly/common/types';
import { Role } from 'roleypoly/design-system/atoms/role';
import { GoSearch } from 'react-icons/go';
import { RoleContainer } from './EditorCategory.styled';

View file

@ -1,6 +1,6 @@
import * as React from 'react';
import { RoleSearch } from './RoleSearch';
import { roleCategory } from 'roleypoly/src/design-system/shared-types/storyData';
import { roleCategory } from 'roleypoly/common/types/storyData';
export default {
title: 'Molecules/Role Search',

View file

@ -2,10 +2,10 @@ import styled from 'styled-components';
import Fuse from 'fuse.js';
import * as React from 'react';
import { GoSearch } from 'react-icons/go';
import { Role } from 'roleypoly/src/design-system/atoms/role';
import { Space } from 'roleypoly/src/design-system/atoms/space';
import { TextInputWithIcon } from 'roleypoly/src/design-system/atoms/text-input';
import { Role as RoleType } from 'roleypoly/src/design-system/shared-types';
import { Role } from 'roleypoly/design-system/atoms/role';
import { Space } from 'roleypoly/design-system/atoms/space';
import { TextInputWithIcon } from 'roleypoly/design-system/atoms/text-input';
import { Role as RoleType } from 'roleypoly/common/types';
type Props = {
roles: RoleType[];

View file

@ -1,6 +1,6 @@
import * as React from 'react';
import { EditorShell } from './EditorShell';
import { guildEnum } from 'roleypoly/src/design-system/shared-types/storyData';
import { guildEnum } from 'roleypoly/common/types/storyData';
export default {
title: 'Organisms/Editor',

View file

@ -1,5 +1,5 @@
import styled from 'styled-components';
import { palette } from 'roleypoly/src/design-system/atoms/colors';
import { palette } from 'roleypoly/design-system/atoms/colors';
export const CategoryContainer = styled.div`
background-color: ${palette.taupe100};

View file

@ -1,6 +1,6 @@
import * as React from 'react';
import { TabView, Tab } from 'roleypoly/src/design-system/atoms/tab-view';
import { PresentableGuild } from 'roleypoly/src/design-system/shared-types';
import { TabView, Tab } from 'roleypoly/design-system/atoms/tab-view';
import { PresentableGuild } from 'roleypoly/common/types';
import { EditorCategory } from '../../molecules/editor-category';
import { CategoryContainer } from './EditorShell.styled';