Untitled
unknown
plain_text
a year ago
633 B
5
Indexable
const Template: Story<ShowSurveyProps> = (args) => {
const { show } = useProcessSurvey("ProcessCompleted", "testProcess");
const goToDashboard = () => {};
return (
<Button
onClick={() =>
show({
...args,
onSurveyClosed: goToDashboard,
})
}
>
Show survey
</Button>
);
};
export const SurveyComponent = Template.bind({});
SurveyComponent.storyName = "Survey";
SurveyComponent.parameters = {
msw: {
handlers: [mocks.survey(), mocks.reviews()],
},
};Editor is loading...
Leave a Comment