fix: Change storybook relative path (#2199)

* fix the storybook realtive path issue

* move stories to realtive to compoent
This commit is contained in:
Muhsin Keloth 2021-05-02 14:40:46 +05:30 committed by GitHub
parent 6a7b98b345
commit b649516fbb
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
3 changed files with 3 additions and 4 deletions

View file

@ -8,8 +8,7 @@ const custom = require('../config/webpack/environment');
module.exports = { module.exports = {
stories: [ stories: [
'../stories/**/*.stories.mdx', '../stories/**/*.stories.mdx',
'../app/javascript/dashboard/components/ui/stories/**/*.stories.@(js|jsx|ts|tsx)', '../app/javascript/**/*.stories.@(js|jsx|ts|tsx)',
'../stories/**/*.stories.@(js|jsx|ts|tsx)',
], ],
addons: [ addons: [
{ {

View file

@ -1,5 +1,5 @@
import { action } from '@storybook/addon-actions'; import { action } from '@storybook/addon-actions';
import AddNote from '../../app/javascript/dashboard/routes/dashboard/contacts/components/AddNote'; import AddNote from './AddNote.vue';
export default { export default {
title: 'Components/Notes/Add', title: 'Components/Notes/Add',

View file

@ -1,5 +1,5 @@
import { action } from '@storybook/addon-actions'; import { action } from '@storybook/addon-actions';
import ContactNote from '../../app/javascript/dashboard/routes/dashboard/contacts/components/ContactNote'; import ContactNote from './ContactNote.vue';
export default { export default {
title: 'Components/Notes/Note', title: 'Components/Notes/Note',