Skip to content

Commit 3160611

Browse files
committed
fixes dependencies
1 parent 973a365 commit 3160611

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

templates/delete-wizard/src/DeleteWizard/DeleteWizardFooter.tsx

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
import React, { MouseEventHandler } from 'react';
22

3-
import { Variant } from '@leafygreen-ui/button';
43
import { CompoundSubComponent } from '@leafygreen-ui/compound-component';
54
import { css, cx } from '@leafygreen-ui/emotion';
5+
import { PrimaryStandardButtonProps } from '@leafygreen-ui/form-footer';
66
import TrashIcon from '@leafygreen-ui/icon/Trash';
77
import { Either } from '@leafygreen-ui/lib';
88
import { 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

0 commit comments

Comments
 (0)