Skip to content

Commit 8f913ff

Browse files
committed
fix wizard changes
1 parent 0434505 commit 8f913ff

File tree

3 files changed

+9
-15
lines changed

3 files changed

+9
-15
lines changed

.changeset/wizard-patch-3.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
'@leafygreen-ui/wizard': patch
3+
---
4+
5+
Exports WizardProvider

packages/wizard/src/WizardStep/WizardStep.tsx

Lines changed: 3 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -5,19 +5,17 @@ import {
55
filterChildren,
66
findChild,
77
} from '@leafygreen-ui/compound-component';
8-
import { cx } from '@leafygreen-ui/emotion';
98
import { useIdAllocator } from '@leafygreen-ui/hooks';
109
import { consoleOnce } from '@leafygreen-ui/lib';
1110

1211
import { WizardSubComponentProperties } from '../constants';
1312
import { useWizardContext } from '../WizardContext';
1413

15-
import { stepStyles } from './WizardStep.styles';
1614
import { WizardStepProps } from './WizardStep.types';
1715
import { WizardStepContext } from './WizardStepContext';
1816

1917
export 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
},
Lines changed: 1 addition & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1 @@
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<{}> {}

0 commit comments

Comments
 (0)