Addon-docs: Show code by default

This commit is contained in:
Fabien Rassinier 2021-04-27 11:38:48 +02:00
parent f517a0a37d
commit b4487fdc8b
2 changed files with 4 additions and 4 deletions

View File

@ -59,7 +59,7 @@ const getPreviewProps = (
withSource: sourceProps,
isExpanded: withSource
? withSource === SourceState.OPEN
: docsContext?.parameters?.docs?.isExpanded,
: docsContext?.parameters?.docs?.isCodeExpanded,
};
};

View File

@ -30,10 +30,10 @@ export default {
},
},
parameters: {
docs: {
isExpanded: false,
},
chromatic: { disable: true },
docs: {
isCodeExpanded: true,
},
},
};