Skip to content

Openverse is a search engine for openly-licensed media. This monorepo includes all application code.

Fix stories for `VContentLink` and `VSearchTypePopover` (#1383)

Dhruv Bhanushalie11f1de91472
diff --git a/src/components/VContentLink/meta/VContentLink.stories.js b/src/components/VContentLink/meta/VContentLink.stories.js
index 01f9d6233..5889d8ce5 100644
--- a/src/components/VContentLink/meta/VContentLink.stories.js
+++ b/src/components/VContentLink/meta/VContentLink.stories.js
@@ -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 = () => ({
@@ -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({})
diff --git a/src/components/VContentSwitcher/meta/VContentSwitcherPopover.stories.mdx b/src/components/VContentSwitcher/meta/VSearchTypePopover.stories.mdx
similarity index 100%
rename from src/components/VContentSwitcher/meta/VContentSwitcherPopover.stories.mdx
rename to src/components/VContentSwitcher/meta/VSearchTypePopover.stories.mdx