Skip to content

Commit

Permalink
chore(docs): fix storybook build
Browse files Browse the repository at this point in the history
  • Loading branch information
DRiFTy17 committed Jan 19, 2024
1 parent 455056e commit 2a82785
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 8 deletions.
6 changes: 3 additions & 3 deletions src/stories/src/components/tooltip/tooltip-args.ts
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
import { PopupPlacement } from '@tylertech/forge';
import { TooltipPlacement } from '@tylertech/forge';

export interface ITooltipProps {
text: string;
delay: number;
position: PopupPlacement;
placement: TooltipPlacement;
}

export const argTypes = {
Expand All @@ -21,7 +21,7 @@ export const argTypes = {
category: 'Properties',
},
},
position: {
placement: {
control: {
type: 'select',
labels: {
Expand Down
10 changes: 5 additions & 5 deletions src/stories/src/components/tooltip/tooltip.stories.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -18,16 +18,16 @@ export default {

export const Default: Story<ITooltipProps> = ({
text = 'Forge components are awesome!',
delay = TOOLTIP_CONSTANTS.numbers.DEFAULT_DELAY,
position = TOOLTIP_CONSTANTS.strings.DEFAULT_POSITION
delay = TOOLTIP_CONSTANTS.defaults.DELAY,
placement = TOOLTIP_CONSTANTS.defaults.PLACEMENT
}) => (
<>
<ForgeButton variant="raised">Hover me</ForgeButton>
<ForgeTooltip text={text} delay={delay} position={position} />
<ForgeTooltip delay={delay} placement={placement}>{text}</ForgeTooltip>
</>
);
Default.args = {
text: 'Forge components are awesome!',
delay: TOOLTIP_CONSTANTS.numbers.DEFAULT_DELAY,
position: TOOLTIP_CONSTANTS.strings.DEFAULT_POSITION
delay: TOOLTIP_CONSTANTS.defaults.DELAY,
placement: TOOLTIP_CONSTANTS.defaults.PLACEMENT
} as ITooltipProps;

0 comments on commit 2a82785

Please sign in to comment.