Skip to content

Commit

Permalink
fixup! Refactor(web-react): Use correct values for Storybook controls…
Browse files Browse the repository at this point in the history
… based on type
  • Loading branch information
literat committed Jun 20, 2024
1 parent a39bf9d commit d0ead2c
Show file tree
Hide file tree
Showing 6 changed files with 7 additions and 7 deletions.
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
import { Markdown } from '@storybook/blocks';
import type { Meta, StoryObj } from '@storybook/react';
import { fn } from '@storybook/test';
import React from 'react';
import { SpiritFileUploaderAttachmentProps, SpiritFileUploaderProps } from '../../../types';
import ReadMe from '../README.md';
import { FileUploader, FileUploaderAttachment, FileUploaderInput, FileUploaderList, useFileQueue } from '..';
import { fn } from '@storybook/test';

const meta: Meta<typeof FileUploader> = {
title: 'Components/FileUploader',
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
import type { Meta, StoryObj } from '@storybook/react';
import { fn } from '@storybook/test';
import React, { useState } from 'react';
import { HeaderDialogProps } from '../../../types';
import { Link } from '../../Link';
Expand All @@ -19,7 +20,6 @@ import {
HeaderNav,
HeaderNavItem,
} from '..';
import { fn } from '@storybook/test';

const meta: Meta<typeof HeaderDialog> = {
title: 'Components/Header',
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
import type { Meta, StoryObj } from '@storybook/react';
import { fn } from '@storybook/test';
import React, { useState } from 'react';
import { HeaderMobileActionsProps } from '../../../types';
import { Link } from '../../Link';
Expand All @@ -19,7 +20,6 @@ import {
HeaderNav,
HeaderNavItem,
} from '..';
import { fn } from '@storybook/test';

const meta: Meta<typeof HeaderMobileActions> = {
title: 'Components/Header',
Expand Down
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
import { Markdown } from '@storybook/blocks';
import type { Meta, StoryObj } from '@storybook/react';
import { fn } from '@storybook/test';
import React, { useState } from 'react';
import { AlignmentY } from '../../../constants';
import { SpiritModalProps } from '../../../types';
import { Button } from '../../Button';
import ReadMe from '../README.md';
import { Modal, ModalHeader, ModalDialog, ModalBody, ModalFooter } from '..';
import { fn } from '@storybook/test';

const meta: Meta<typeof Modal> = {
title: 'Components/Modal',
Expand Down
Original file line number Diff line number Diff line change
@@ -1,13 +1,13 @@
import { Markdown } from '@storybook/blocks';
import type { Meta, StoryObj } from '@storybook/react';
import React from 'react';
import { ToastItem, ToastProvider, UncontrolledToast } from '..';
import { AlignmentX, EmotionColors } from '../../../constants';
import { LinkProps, ToastColorType, UncontrolledToastProps } from '../../../types';
import { Button } from '../../Button';
import ReadMe from '../README.md';
import { DEFAULT_TOAST_AUTO_CLOSE_INTERVAL } from '../constants';
import ReadMe from '../README.md';
import { useToast } from '../useToast';
import { ToastItem, ToastProvider, UncontrolledToast } from '..';

interface UncontrolledToastPlaygroundProps extends UncontrolledToastProps, ToastItem {}

Expand Down
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
import { Markdown } from '@storybook/blocks';
import type { Meta, StoryObj } from '@storybook/react';
import React from 'react';
import { TooltipTrigger } from '..';
import { Button } from '../../Button';
import ReadMe from '../README.md';
import { TooltipTrigger } from '..';

const meta: Meta<typeof TooltipTrigger> = {
title: 'Components/Tooltip',
Expand Down

0 comments on commit d0ead2c

Please sign in to comment.