Skip to content

Commit

Permalink
fix: remove useResponseUI hook from ConstructorForm story
Browse files Browse the repository at this point in the history
  • Loading branch information
varex83 committed Dec 11, 2023
1 parent 2e0c14e commit 40d06d7
Showing 1 changed file with 3 additions and 8 deletions.
11 changes: 3 additions & 8 deletions src/stories/ConstructorForm.stories.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -2,21 +2,16 @@ import React from 'react';
import { Meta, StoryFn } from '@storybook/react';

import { ConstructorForm } from '..';
import useResponseUI from '../hooks/useResponse';

export default {
title: 'ConstructorForm',
component: ConstructorForm,
argTypes: {},
} as Meta<typeof ConstructorForm>;

const Template: StoryFn<typeof ConstructorForm> = (args) => {
const { responses } = useResponseUI({
complex_input: <div>Test Response</div>,
});

return <ConstructorForm {...args} responses={responses} />;
};
const Template: StoryFn<typeof ConstructorForm> = (args) => (
<ConstructorForm {...args} />
);

export const Primary = Template.bind({});

Expand Down

0 comments on commit 40d06d7

Please sign in to comment.