Skip to content

Commit

Permalink
Refactor import paths for UI components
Browse files Browse the repository at this point in the history
  • Loading branch information
kotAPI committed Jan 4, 2024
1 parent 23ebe3a commit f72ecf3
Show file tree
Hide file tree
Showing 8 changed files with 10 additions and 42 deletions.
4 changes: 3 additions & 1 deletion src/components/tools/SandboxEditor/SandboxEditor.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion src/components/ui/Badge/Badge.stories.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import Badge from './Badge';
import {Separator} from '~/';
import Separator from '../Separator/Separator';
import SandboxEditor from '~/components/tools/SandboxEditor/SandboxEditor';

const ArrowIcon = ({className}) => {
Expand Down
3 changes: 2 additions & 1 deletion src/components/ui/Dropdown/Dropdown.stories.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@

import {Dropdown, Heading} from '~/';
import Heading from '~/components/ui/Heading/Heading';
import Dropdown from '~/components/ui/Dropdown/Dropdown';
import SandboxEditor from '~/components/tools/SandboxEditor/SandboxEditor';

// More on how to set up stories at: https://storybook.js.org/docs/react/writing-stories/introduction#default-export
Expand Down
3 changes: 2 additions & 1 deletion src/components/ui/Em/Em.stories.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
import Em from './Em';
import {Heading} from '~/';
import Heading from '../Heading/Heading';

import SandboxEditor from '~/components/tools/SandboxEditor/SandboxEditor';

// More on how to set up stories at: https://storybook.js.org/docs/react/writing-stories/introduction#default-export
Expand Down
1 change: 0 additions & 1 deletion src/components/ui/Link/Link.stories.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
import Link from './Link';
import {Text} from '~/';
import SandboxEditor from '~/components/tools/SandboxEditor/SandboxEditor';

// More on how to set up stories at: https://storybook.js.org/docs/react/writing-stories/introduction#default-export
Expand Down
5 changes: 1 addition & 4 deletions src/components/ui/Quote/Quote.stories.js
Original file line number Diff line number Diff line change
@@ -1,10 +1,7 @@
import Quote from './Quote';
import {Text} from '~/';
import Text from '~/components/ui/Text/Text';
import SandboxEditor from '~/components/tools/SandboxEditor/SandboxEditor';

const ArrowIcon = ({className}) => {
return <svg className={className} width="16" height="16" viewBox="0 0 15 15" fill="none" xmlns="http://www.w3.org/2000/svg"><path d="M8.14645 3.14645C8.34171 2.95118 8.65829 2.95118 8.85355 3.14645L12.8536 7.14645C13.0488 7.34171 13.0488 7.65829 12.8536 7.85355L8.85355 11.8536C8.65829 12.0488 8.34171 12.0488 8.14645 11.8536C7.95118 11.6583 7.95118 11.3417 8.14645 11.1464L11.2929 8H2.5C2.22386 8 2 7.77614 2 7.5C2 7.22386 2.22386 7 2.5 7H11.2929L8.14645 3.85355C7.95118 3.65829 7.95118 3.34171 8.14645 3.14645Z" fill="currentColor" fillRule="evenodd" clipRule="evenodd"></path></svg>;
};

// More on how to set up stories at: https://storybook.js.org/docs/react/writing-stories/introduction#default-export
export default {
Expand Down
2 changes: 1 addition & 1 deletion src/components/ui/Tooltip/Tooltip.stories.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@

import {Tooltip, Heading} from '~/';
import Tooltip from './Tooltip';
import SandboxEditor from '~/components/tools/SandboxEditor/SandboxEditor';
import ScrollPlayground from '~/components/tools/ScrollPlayground/ScrollPlayground';

Expand Down
32 changes: 0 additions & 32 deletions src/index.js

This file was deleted.

0 comments on commit f72ecf3

Please sign in to comment.