Skip to content
This repository has been archived by the owner on Feb 22, 2023. It is now read-only.

Commit

Permalink
Fix stories for VContentLink and VSearchTypePopover (#1383)
Browse files Browse the repository at this point in the history
  • Loading branch information
dhruvkb authored May 5, 2022
1 parent 9c33844 commit e11f1de
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 6 deletions.
16 changes: 10 additions & 6 deletions src/components/VContentLink/meta/VContentLink.stories.js
Original file line number Diff line number Diff line change
Expand Up @@ -21,10 +21,12 @@ export default {
},
}

const VContentLinkStory = (args, { argTypes }) => ({
template: `<VContentLink v-bind="$props" />`,
const VContentLinkStory = (args) => ({
template: `<VContentLink v-bind="args" />`,
components: { VContentLink },
props: Object.keys(argTypes),
setup() {
return { args }
},
})

const TwoVContentLinkStory = () => ({
Expand Down Expand Up @@ -62,10 +64,12 @@ Default.args = {
isSelected: false,
}

const VContentLinkHorizontalStory = (args, { argTypes }) => ({
template: `<div class="max-w-md"><VContentLink v-bind="$props" /></div>`,
const VContentLinkHorizontalStory = (args) => ({
template: `<div class="max-w-md"><VContentLink v-bind="args" /></div>`,
components: { VContentLink },
props: Object.keys(argTypes),
setup() {
return { args }
},
})

export const Horizontal = VContentLinkHorizontalStory.bind({})
Expand Down

0 comments on commit e11f1de

Please sign in to comment.