Skip to content

Commit d8679f9

Browse files
committed
refactor(WizardFooter): simplify props by extending FormFooterProps
1 parent dcd3539 commit d8679f9

File tree

1 file changed

+3
-16
lines changed

1 file changed

+3
-16
lines changed
Lines changed: 3 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -1,18 +1,5 @@
11
import { FormFooterProps } from '@leafygreen-ui/form-footer';
22

3-
export interface WizardFooterProps extends React.ComponentProps<'footer'> {
4-
/**
5-
* Props for the back button (left-most button)
6-
*/
7-
backButtonProps?: FormFooterProps['backButtonProps'];
8-
9-
/**
10-
* Props for the cancel button (center button)
11-
*/
12-
cancelButtonProps?: FormFooterProps['cancelButtonProps'];
13-
14-
/**
15-
* Props for the primary button (right-most button)
16-
*/
17-
primaryButtonProps: FormFooterProps['primaryButtonProps'];
18-
}
3+
export interface WizardFooterProps
4+
extends React.ComponentProps<'footer'>,
5+
FormFooterProps {}

0 commit comments

Comments
 (0)