File tree Expand file tree Collapse file tree 7 files changed +17
-7
lines changed Expand file tree Collapse file tree 7 files changed +17
-7
lines changed Original file line number Diff line number Diff line change @@ -4,7 +4,7 @@ import { Direction } from '@leafygreen-ui/descendants';
4
4
import { findChild , findChildren } from '@leafygreen-ui/lib' ;
5
5
6
6
import { useWizardControlledValue } from '../utils/useWizardControlledValue/useWizardControlledValue' ;
7
- import { WizardContext } from '../WizardContext/WizardContext ' ;
7
+ import { WizardContext } from '../WizardContext' ;
8
8
import { WizardFooter } from '../WizardFooter' ;
9
9
import { WizardStep } from '../WizardStep' ;
10
10
Original file line number Diff line number Diff line change @@ -2,7 +2,7 @@ import { createContext, useContext } from 'react';
2
2
3
3
import { Direction } from '@leafygreen-ui/descendants' ;
4
4
5
- interface WizardContextData {
5
+ export interface WizardContextData {
6
6
isWizardContext : boolean ;
7
7
activeStep : number ;
8
8
updateStep : ( direction : Direction ) => void ;
Original file line number Diff line number Diff line change
1
+ export {
2
+ WizardContext ,
3
+ type WizardContextData ,
4
+ useWizardContext ,
5
+ } from './WizardContext' ;
Original file line number Diff line number Diff line change @@ -2,7 +2,7 @@ import React from 'react';
2
2
import { render } from '@testing-library/react' ;
3
3
4
4
import { WizardFooter } from '.' ;
5
- import { Wizard } from '../Wizard/Wizard ' ;
5
+ import { Wizard } from '../Wizard' ;
6
6
7
7
describe ( 'packages/wizard-footer' , ( ) => {
8
8
test ( 'does not render outside WizardContext' , ( ) => {
Original file line number Diff line number Diff line change @@ -3,7 +3,7 @@ import React, { MouseEventHandler } from 'react';
3
3
import { Direction } from '@leafygreen-ui/descendants' ;
4
4
import FormFooter from '@leafygreen-ui/form-footer' ;
5
5
6
- import { useWizardContext } from '../WizardContext/WizardContext ' ;
6
+ import { useWizardContext } from '../WizardContext' ;
7
7
8
8
import { WizardFooterProps } from './WizardFooter.types' ;
9
9
import { WizardSubComponentProperties } from '../constants' ;
Original file line number Diff line number Diff line change @@ -6,7 +6,7 @@ import { stepStyles } from './WizardStep.styles';
6
6
import { WizardStepProps } from './WizardStep.types' ;
7
7
import { WizardSubComponentProperties } from '../constants' ;
8
8
import { TextNode } from './TextNode' ;
9
- import { useWizardContext } from '../WizardContext/WizardContext ' ;
9
+ import { useWizardContext } from '../WizardContext' ;
10
10
import { consoleOnce } from '@leafygreen-ui/lib' ;
11
11
12
12
export function WizardStep ( {
Original file line number Diff line number Diff line change 1
1
export { Wizard , type WizardProps } from './Wizard' ;
2
- export { WizardFooter , type WizardFooterProps } from './WizardFooter' ;
3
- export { WizardStep , type WizardStepProps } from './WizardStep' ;
2
+ export {
3
+ WizardContext ,
4
+ WizardContextData ,
5
+ useWizardContext ,
6
+ } from './WizardContext' ;
7
+ export { type WizardFooterProps } from './WizardFooter' ;
8
+ export { type WizardStepProps } from './WizardStep' ;
You can’t perform that action at this time.
0 commit comments