File tree Expand file tree Collapse file tree 3 files changed +9
-15
lines changed
packages/wizard/src/WizardStep Expand file tree Collapse file tree 3 files changed +9
-15
lines changed Original file line number Diff line number Diff line change 1+ ---
2+ ' @leafygreen-ui/wizard ' : patch
3+ ---
4+
5+ Exports WizardProvider
Original file line number Diff line number Diff line change @@ -5,19 +5,17 @@ import {
55 filterChildren ,
66 findChild ,
77} from '@leafygreen-ui/compound-component' ;
8- import { cx } from '@leafygreen-ui/emotion' ;
98import { useIdAllocator } from '@leafygreen-ui/hooks' ;
109import { consoleOnce } from '@leafygreen-ui/lib' ;
1110
1211import { WizardSubComponentProperties } from '../constants' ;
1312import { useWizardContext } from '../WizardContext' ;
1413
15- import { stepStyles } from './WizardStep.styles' ;
1614import { WizardStepProps } from './WizardStep.types' ;
1715import { WizardStepContext } from './WizardStepContext' ;
1816
1917export const WizardStep = CompoundSubComponent (
20- ( { children, className , ... rest } : WizardStepProps ) => {
18+ ( { children } : WizardStepProps ) => {
2119 const stepId = useIdAllocator ( { prefix : 'wizard-step' } ) ;
2220 const { isWizardContext } = useWizardContext ( ) ;
2321 const [ isAcknowledged , setAcknowledged ] = useState ( false ) ;
@@ -46,10 +44,8 @@ export const WizardStep = CompoundSubComponent(
4644 setAcknowledged,
4745 } }
4846 >
49- < div className = { cx ( stepStyles , className ) } { ...rest } >
50- { restChildren }
51- { footerChild }
52- </ div >
47+ { restChildren }
48+ { footerChild }
5349 </ WizardStepContext . Provider >
5450 ) ;
5551 } ,
Original file line number Diff line number Diff line change 1- import { ReactNode } from 'react' ;
2-
3- export interface WizardStepProps extends React . ComponentProps < 'div' > {
4- /**
5- * The content of the step
6- */
7- children : ReactNode ;
8- }
1+ export interface WizardStepProps extends React . PropsWithChildren < { } > { }
You can’t perform that action at this time.
0 commit comments