Skip to content

Commit

Permalink
Merge branch 'feature/139-files-table-file-action-buttons-ui' of http…
Browse files Browse the repository at this point in the history
…s://github.com/IQSS/dataverse-frontend into feature/159-manage-user-permissions-files
  • Loading branch information
MellyGray committed Sep 19, 2023
2 parents ee46d31 + baff74d commit bf5016d
Show file tree
Hide file tree
Showing 3 changed files with 3,935 additions and 669 deletions.
15 changes: 10 additions & 5 deletions .storybook/main.ts
Original file line number Diff line number Diff line change
@@ -1,15 +1,16 @@
import { dirname, join } from "path";
import type { StorybookConfig } from '@storybook/react-vite'

const config: StorybookConfig = {
stories: ['../src/**/*.mdx', '../src/**/*.stories.@(js|jsx|ts|tsx)'],
addons: [
'@storybook/addon-links',
'@storybook/addon-essentials',
'@storybook/addon-interactions',
'@storybook/addon-a11y'
getAbsolutePath("@storybook/addon-links"),
getAbsolutePath("@storybook/addon-essentials"),
getAbsolutePath("@storybook/addon-interactions"),
getAbsolutePath("@storybook/addon-a11y")
],
framework: {
name: '@storybook/react-vite',
name: getAbsolutePath("@storybook/react-vite"),
options: {}
},
docs: {
Expand All @@ -18,3 +19,7 @@ const config: StorybookConfig = {
staticDirs: ['../public']
}
export default config

function getAbsolutePath(value: string): any {
return dirname(require.resolve(join(value, "package.json")));
}
Loading

0 comments on commit bf5016d

Please sign in to comment.