From b649516fbb1b586af3d8b52ce962e63745fc1b8c Mon Sep 17 00:00:00 2001 From: Muhsin Keloth Date: Sun, 2 May 2021 14:40:46 +0530 Subject: [PATCH] fix: Change storybook relative path (#2199) * fix the storybook realtive path issue * move stories to realtive to compoent --- .storybook/main.js | 3 +-- .../routes/dashboard/contacts/components}/AddNote.stories.js | 2 +- .../dashboard/contacts/components}/ContactNote.stories.js | 2 +- 3 files changed, 3 insertions(+), 4 deletions(-) rename {stories/Module => app/javascript/dashboard/routes/dashboard/contacts/components}/AddNote.stories.js (80%) rename {stories/Module => app/javascript/dashboard/routes/dashboard/contacts/components}/ContactNote.stories.js (90%) diff --git a/.storybook/main.js b/.storybook/main.js index 3882965b0..b749e262d 100644 --- a/.storybook/main.js +++ b/.storybook/main.js @@ -8,8 +8,7 @@ const custom = require('../config/webpack/environment'); module.exports = { stories: [ '../stories/**/*.stories.mdx', - '../app/javascript/dashboard/components/ui/stories/**/*.stories.@(js|jsx|ts|tsx)', - '../stories/**/*.stories.@(js|jsx|ts|tsx)', + '../app/javascript/**/*.stories.@(js|jsx|ts|tsx)', ], addons: [ { diff --git a/stories/Module/AddNote.stories.js b/app/javascript/dashboard/routes/dashboard/contacts/components/AddNote.stories.js similarity index 80% rename from stories/Module/AddNote.stories.js rename to app/javascript/dashboard/routes/dashboard/contacts/components/AddNote.stories.js index d8d0c6641..6dc059167 100644 --- a/stories/Module/AddNote.stories.js +++ b/app/javascript/dashboard/routes/dashboard/contacts/components/AddNote.stories.js @@ -1,5 +1,5 @@ import { action } from '@storybook/addon-actions'; -import AddNote from '../../app/javascript/dashboard/routes/dashboard/contacts/components/AddNote'; +import AddNote from './AddNote.vue'; export default { title: 'Components/Notes/Add', diff --git a/stories/Module/ContactNote.stories.js b/app/javascript/dashboard/routes/dashboard/contacts/components/ContactNote.stories.js similarity index 90% rename from stories/Module/ContactNote.stories.js rename to app/javascript/dashboard/routes/dashboard/contacts/components/ContactNote.stories.js index c9c451d5d..26d38712f 100644 --- a/stories/Module/ContactNote.stories.js +++ b/app/javascript/dashboard/routes/dashboard/contacts/components/ContactNote.stories.js @@ -1,5 +1,5 @@ import { action } from '@storybook/addon-actions'; -import ContactNote from '../../app/javascript/dashboard/routes/dashboard/contacts/components/ContactNote'; +import ContactNote from './ContactNote.vue'; export default { title: 'Components/Notes/Note',