Skip to content

Commit

Permalink
fix: fixed test.
Browse files Browse the repository at this point in the history
  • Loading branch information
soslayando committed Apr 9, 2024
1 parent ecd516d commit 1980b10
Show file tree
Hide file tree
Showing 4 changed files with 13 additions and 7 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,6 @@ PanelFooter._Help = PanelFooterHelp;
PanelFooter._Actions = PanelFooterActions;

InternalPanelFooter.displayName = 'PanelFooter';

PanelFooter._Container.displayName = 'PanelFooter._Container';
PanelFooter._Help.displayName = 'PanelFooter._Help';
PanelFooter._Actions.displayName = 'PanelFooter._Actions';
Original file line number Diff line number Diff line change
Expand Up @@ -122,7 +122,6 @@ PanelHeader._Heading = PanelHeaderHeading;
PanelHeader._Icon = PanelHeaderIcon;

InternalPanelHeader.displayName = 'PanelHeader';

PanelHeader._Actions.displayName = 'PanelHeader._Actions';
PanelHeader._Close.displayName = 'PanelHeader._Close';
PanelHeader._CollapseButton.displayName = 'PanelHeader._CollapseButton';
Expand Down
11 changes: 6 additions & 5 deletions packages/core/src/components/Stepper/Stepper.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -61,12 +61,13 @@ export const InternalStepper: React.FC<StepperProps> = ({
);

export const Stepper = InternalStepper as typeof InternalStepper & {
Container: typeof StepperContainer;
Item: typeof StepperItem;
_Container: typeof StepperContainer;
_Item: typeof StepperItem;
};

Stepper.Container = StepperContainer;
Stepper._Container = StepperContainer;
Stepper._Item = StepperItem;

InternalStepper.displayName = 'Stepper';
Stepper.Container.displayName = 'Stepper.Container';
Stepper.Item.displayName = 'Stepper.Item';
Stepper._Container.displayName = 'Stepper.Container';
Stepper._Item.displayName = 'Stepper.Item';
Original file line number Diff line number Diff line change
Expand Up @@ -60,3 +60,10 @@ StepperItem._Content = StepperItemContent;
StepperItem._Divider = StepperItemDivider;
StepperItem._HiddenStatus = StepperItemHiddenStatus;
StepperItem._Indicator = StepperItemIndicator;

InternalStepperItem.displayName = 'StepperItem';
StepperItem._Container.displayName = 'StepperItem._Container';
StepperItem._Content.displayName = 'StepperItem._Content';
StepperItem._Divider.displayName = 'StepperItem._Divider';
StepperItem._HiddenStatus.displayName = 'StepperItem._HiddenStatus';
StepperItem._Indicator.displayName = 'StepperItem._Indicator';

0 comments on commit 1980b10

Please sign in to comment.