Skip to content

Commit

Permalink
renamed the header custo element name
Browse files Browse the repository at this point in the history
  • Loading branch information
pramodcog committed Aug 26, 2024
1 parent afd2097 commit 9dd6c52
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
6 changes: 3 additions & 3 deletions react-components/src/components/Widgets/WindowWidget.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ type WindowWidgetProps = {
subtitle?: string;
header?: string;
type?: string;
customComponent?: ReactNode;
headerElement?: ReactNode;
children: ReactNode;
onClose?: () => void;
onResize?: (width: number, height: number) => void;
Expand All @@ -39,7 +39,7 @@ export const WindowWidget = ({
header,
type,
children,
customComponent,
headerElement,
onClose,
onResize
}: WindowWidgetProps): ReactElement => {
Expand Down Expand Up @@ -117,7 +117,7 @@ export const WindowWidget = ({
onResize={handleResize}>
<Widget>
<Widget.Header title={title} type={type} header={header} subtitle={subtitle}>
{customComponent !== undefined && customComponent}
{headerElement !== undefined && headerElement}
<CogsTooltip
content={
isMinimized
Expand Down
2 changes: 1 addition & 1 deletion react-components/stories/SplitWindow.stories.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ export const Main: Story = {
<WindowWidget
header="Widget Header"
onClose={handleClose}
customComponent={openExternalButton()}>
headerElement={openExternalButton()}>
<SecondaryRevealContainer />
</WindowWidget>
)}
Expand Down

0 comments on commit 9dd6c52

Please sign in to comment.