Skip to content

Commit

Permalink
Upgrade to Storybook 8 (#2822)
Browse files Browse the repository at this point in the history
* Upgrade to Storybook 8

* Fix fomatting

* Fix client-api import using preview-api
  • Loading branch information
dottorblaster authored Jul 26, 2024
1 parent 3705fc2 commit fed0401
Show file tree
Hide file tree
Showing 5 changed files with 1,697 additions and 8,845 deletions.
7 changes: 3 additions & 4 deletions assets/.storybook/main.js
Original file line number Diff line number Diff line change
@@ -1,11 +1,12 @@
const path = require('path');
module.exports = {
stories: ['../js/**/*.stories.mdx', '../js/**/*.stories.@(js|jsx|ts|tsx)'],
stories: ['../js/**/*.mdx', '../js/**/*.stories.@(js|jsx|ts|tsx)'],
addons: [
'@storybook/addon-links',
'@storybook/addon-essentials',
'@storybook/addon-actions',
'@storybook/addon-interactions',
'@storybook/addon-webpack5-compiler-babel',
],
framework: {
name: '@storybook/react-webpack5',
Expand All @@ -26,8 +27,6 @@ module.exports = {

return config;
},
docs: {
autodocs: true,
},
docs: {},
staticDirs: ['../../priv/static'],
};
1 change: 1 addition & 0 deletions assets/.storybook/preview.js
Original file line number Diff line number Diff line change
Expand Up @@ -9,3 +9,4 @@ export const parameters = {
},
},
};
export const tags = ['autodocs'];
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
/* eslint-disable no-console, react/function-component-definition */
import React from 'react';
import { useArgs } from '@storybook/client-api';
import { useArgs } from '@storybook/preview-api';
import ApiKeySettingsModal from './ApiKeySettingsModal';

export default {
Expand Down
Loading

0 comments on commit fed0401

Please sign in to comment.