fix tests

This commit is contained in:
Konstantin Schaper
2020-08-07 14:17:54 +02:00
parent a99fdcef8e
commit 76b561414c
5 changed files with 62 additions and 33 deletions

View File

@@ -35,7 +35,7 @@ const Wrapper = styled.div`
storiesOf("Popover", module)
.addDecorator(storyFn => <Wrapper>{storyFn()}</Wrapper>)
.add("Default", () => {
.add("Default", () => React.createElement(() => {
const { triggerProps, popoverProps } = usePopover();
return (
@@ -52,8 +52,8 @@ storiesOf("Popover", module)
</button>
</div>
);
})
.add("Link", () => {
}))
.add("Link", () => React.createElement(() => {
const { triggerProps, popoverProps } = usePopover();
return (
@@ -70,4 +70,4 @@ storiesOf("Popover", module)
</a>
</div>
);
});
}));