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

Fix stories for VContentLink and VSearchTypePopover #1383

Merged
merged 2 commits into from
May 5, 2022
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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