Skip to content

Commit

Permalink
fix(transfer): wrong topbar caller's info (#64)
Browse files Browse the repository at this point in the history
  • Loading branch information
tonyco97 authored Dec 10, 2024

Verified

This commit was created on GitHub.com and signed with GitHub’s verified signature.
1 parent ba314a6 commit 0902189
Showing 14 changed files with 518 additions and 1,388 deletions.
47 changes: 31 additions & 16 deletions .storybook/main.js
Original file line number Diff line number Diff line change
@@ -2,24 +2,39 @@
// Copyright (C) 2024 Nethesis S.r.l.
// SPDX-License-Identifier: AGPL-3.0-or-later
//
const path = require('path')

module.exports = {
staticDirs: ['../public'],
stories: ['../src/**/*.stories.@(ts|tsx|js|jsx)'],
addons: ['@storybook/addon-links', '@storybook/addon-essentials', '@storybook/addon-actions'],
// framework: '@storybook/react-webpack5',
webpackFinal: async (config) => {
const cssRule = config.module.rules.find(
(rule) => rule.test && rule.test.toString().includes('css'),
)

addons: [
'@storybook/addon-links',
'@storybook/addon-essentials',
'@storybook/addon-actions',
{
name: '@storybook/addon-postcss',
options: {
postcssLoaderOptions: {
implementation: require('postcss'),
if (cssRule) {
cssRule.use = [
'style-loader',
{
loader: 'css-loader',
options: {
importLoaders: 1,
},
},
},
},
],
{
loader: 'postcss-loader',
options: {
postcssOptions: {
config: path.resolve(__dirname, '../postcss.config.js'),
},
},
},
]
}

return config
},

// https://storybook.js.org/docs/react/configure/typescript#mainjs-configuration
typescript: {
@@ -28,10 +43,10 @@ module.exports = {

framework: {
name: '@storybook/react-webpack5',
options: {}
options: {},
},

docs: {
autodocs: false
}
autodocs: false,
},
}
Loading

0 comments on commit 0902189

Please sign in to comment.