Skip to content

Commit

Permalink
Oppgradering av storybook som kjører
Browse files Browse the repository at this point in the history
  • Loading branch information
charliemidtlyng committed Nov 26, 2024
1 parent 9779fd1 commit 8f55c50
Show file tree
Hide file tree
Showing 5 changed files with 693 additions and 116 deletions.
9 changes: 4 additions & 5 deletions .storybook/main.ts
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,8 @@ const storybookConfig: StorybookConfig = {
getAbsolutePath('@storybook/addon-essentials'),
getAbsolutePath('@storybook/addon-a11y'),
getAbsolutePath('@storybook/addon-storysource'),
'@storybook/addon-webpack5-compiler-babel',
getAbsolutePath('@storybook/addon-mdx-gfm'),
getAbsolutePath('@storybook/addon-webpack5-compiler-swc'),
],
typescript: {
check: true,
Expand All @@ -21,12 +22,10 @@ const storybookConfig: StorybookConfig = {
},
},
framework: {
name: getAbsolutePath('@storybook/react-webpack5'),
name: '@storybook/react-webpack5',
options: {},
},
docs: {
autodocs: true,
},
docs: {},
async webpackFinal(config) {
if (config.module && config.module.rules) {
config.module.rules.push({
Expand Down
1 change: 1 addition & 0 deletions .storybook/preview.js
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
export const parameters = {
controls: { expanded: true },
};
export const tags = ["autodocs"];
5 changes: 2 additions & 3 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -39,13 +39,13 @@
"@commitlint/config-conventional": "^19.6.0",
"@storybook/addon-a11y": "^8.4.5",
"@storybook/addon-essentials": "^8.4.5",
"@storybook/addon-mdx-gfm": "^8.4.5",
"@storybook/addon-storysource": "^8.4.5",
"@storybook/addon-webpack5-compiler-babel": "^3.0.3",
"@storybook/blocks": "^8.4.5",
"@storybook/react": "^8.4.5",
"@storybook/react-webpack5": "^8.4.5",
"@storybook/addon-webpack5-compiler-swc": "^1.0.5",
"@storybook/storybook-deployer": "^2.8.16",
"babel-loader": "^9.2.1",
"classnames": "^2.5.1",
"commitizen": "^4.3.1",
"copyfiles": "^2.4.1",
Expand All @@ -67,7 +67,6 @@
"react-dom": "^18.3.1",
"storybook": "^8.4.5",
"style-loader": "^4.0.0",
"ts-loader": "^9.5.1",
"tslint": "^6.1.3",
"tslint-config-prettier": "^1.18.0",
"typescript": "^5.7.2",
Expand Down
2 changes: 1 addition & 1 deletion packages/familie-header/src/søk/Søkeresultat.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -126,7 +126,7 @@ const ResultatVisningUtenFagsak: React.FC<{ ingenFagsakKomponent?: ReactNode }>
ingenFagsakKomponent,
}) => {
if (ingenFagsakKomponent) {
return ingenFagsakKomponent;
return <>ingenFagsakKomponent</>;
}

return <BodyShort size={'small'}>{`Ingen fagsak. Trykk for å opprette.`}</BodyShort>;
Expand Down
Loading

0 comments on commit 8f55c50

Please sign in to comment.