File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed
templates/delete-wizard/src/DeleteWizard Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change 11import React , { MouseEventHandler } from 'react' ;
22
3- import { Variant } from '@leafygreen-ui/button' ;
43import { CompoundSubComponent } from '@leafygreen-ui/compound-component' ;
54import { css , cx } from '@leafygreen-ui/emotion' ;
5+ import { PrimaryStandardButtonProps } from '@leafygreen-ui/form-footer' ;
66import TrashIcon from '@leafygreen-ui/icon/Trash' ;
77import { Either } from '@leafygreen-ui/lib' ;
88import { breakpoints } from '@leafygreen-ui/tokens' ;
@@ -81,9 +81,9 @@ export const DeleteWizardFooter = CompoundSubComponent(
8181 onCancel ?.( e ) ;
8282 } ;
8383
84- const _primaryButtonProps = {
84+ const _primaryButtonProps : PrimaryStandardButtonProps = {
8585 children : primaryButtonText ?? '' ,
86- variant : isLastStep ? Variant . Danger : Variant . Primary ,
86+ variant : isLastStep ? 'danger' : 'primary' ,
8787 leftGlyph : isLastStep ? < TrashIcon /> : undefined ,
8888 ...primaryButtonProps ,
8989 // we define `onClick` after spreading props so this handler will always take precedence
You can’t perform that action at this time.
0 commit comments