@@ -37,18 +37,18 @@ import ButtonDocumentation from '!!type-loader!@sentry/scraps/button';
3737
3838export const documentation = {
3939 exports: {
40- module: ButtonDocumentation .exports .module ,
40+ module: ButtonDocumentation .exports ? .module ,
4141 exports: {
4242 // Button has some exports that we don't want to document, strip them out until they are removed
4343 ... Object .fromEntries (
44- Object .entries (ButtonDocumentation .exports .exports ).filter (
44+ Object .entries (ButtonDocumentation ? .exports ? .exports ?? {} ).filter (
4545 ([key ]) => key !== ' StyledButton' && key !== ' ButtonBar'
4646 )
4747 ),
4848 },
4949 },
5050 props: {
51- ... ButtonDocumentation .props ,
51+ ... ButtonDocumentation ? .props ,
5252 },
5353};
5454
@@ -63,19 +63,17 @@ To create a basic button, wrap text in a `<Button>` and pass an `onClick` callba
6363Buttons come in a few different styles: ` muted ` (default), ` primary ` , ` warning ` , ` danger ` , ` transparent ` and ` link ` .
6464
6565<Storybook.Demo >
66- <Button priority = " muted " >Muted (default)</Button >
66+ <Button priority = " default " >Default (default)</Button >
6767 <Button priority = " primary" >Primary</Button >
68- <Button priority = " warning" >Warning</Button >
6968 <Button priority = " danger" >Danger</Button >
7069 <Button priority = " transparent" >Transparent</Button >
7170 <div style = { {alignSelf: ' center' }} >
7271 <Button priority = " link" >Link</Button >
7372 </div >
7473</Storybook.Demo >
7574``` jsx
76- < Button priority= " muted " > Muted (default)< / Button>
75+ < Button priority= " default " > Default (default)< / Button>
7776< Button priority= " primary" > Primary< / Button>
78- < Button priority= " warning" > Warning< / Button>
7977< Button priority= " danger" > Danger< / Button>
8078< Button priority= " transparent" > Transparent< / Button>
8179< Button priority= " link" > Link< / Button>
0 commit comments