Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
14 changes: 6 additions & 8 deletions frontend/.storybook/main.js
Original file line number Diff line number Diff line change
Expand Up @@ -7,23 +7,21 @@ module.exports = {
],
addons: [
'@storybook/addon-links',
'@storybook/addon-essentials',
'@storybook/addon-interactions',
'storybook-addon-designs',
'@storybook/addon-a11y'
'@storybook/addon-a11y',
'@storybook/addon-docs'
],
framework: '@storybook/react',
framework: {
name: '@storybook/nextjs-vite',
options: {}
},
staticDirs: ['../public'],
core: {
builder: '@storybook/builder-webpack5',
disableTelemetry: true
},
typescript: {
check: true
},
features: {
emotionAlias: false
},
webpackFinal: async (config, { configType }) => {
config.resolve.modules = [path.resolve(__dirname, '..'), 'node_modules']
config.resolve.alias = {
Expand Down
17 changes: 11 additions & 6 deletions frontend/.storybook/preview.js
Original file line number Diff line number Diff line change
Expand Up @@ -9,12 +9,11 @@ export const parameters = {
}
},
backgrounds: {
default: 'White',
values: [
{ name: 'Dark grey', value: '#AEAEAE' },
{ name: 'Light', value: '#E9EAEC' },
{ name: 'White', value: '#fff' }
]
options: {
dark_grey: { name: 'Dark grey', value: '#AEAEAE' },
light: { name: 'Light', value: '#E9EAEC' },
white: { name: 'White', value: '#fff' }
}
}
}

Expand All @@ -25,3 +24,9 @@ export const decorators = [
</ThemeProvider>
)
]

export const initialGlobals = {

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

does this get used?

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

backgrounds: {
value: 'white'
}
};
2 changes: 1 addition & 1 deletion frontend/.storybook/theme.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { create } from '@storybook/theming'
import { create } from 'storybook/theming'

export default create({
base: 'light',
Expand Down
1 change: 1 addition & 0 deletions frontend/next.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@ const path = require('path')
const apiProx = process.env.NEXT_PUBLIC_API_URL_PROXY || null
/** @type {import('next').NextConfig} */
const nextConfig = {
output: 'export',
reactStrictMode: true,
trailingSlash: false,
turbopack: {
Expand Down
Loading
Loading