Skip to content

Commit a2ac5fb

Browse files
committed
fix(PageHeader): updated type to ReactNode
1 parent 382c41e commit a2ac5fb

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

packages/module/src/ContentHeader/ContentHeader.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import type { PropsWithChildren, FunctionComponent } from 'react';
1+
import type { PropsWithChildren, FunctionComponent, ReactNode } from 'react';
22
import {
33
Flex,
44
FlexItem,
@@ -17,7 +17,7 @@ import { createUseStyles } from 'react-jss';
1717
/** extends ButtonProps */
1818
export interface PageHeaderLinkProps extends ButtonProps {
1919
/** Title for the link */
20-
label: string;
20+
label: ReactNode;
2121
/** Indicates if the link points to an external page */
2222
isExternal?: boolean;
2323
}

packages/module/src/PageHeader/PageHeader.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import type { FunctionComponent } from 'react';
1+
import type { FunctionComponent, ReactNode } from 'react';
22
import {
33
Button,
44
ButtonProps,
@@ -18,7 +18,7 @@ import { createUseStyles } from 'react-jss';
1818
/** extends ButtonProps */
1919
export interface PageHeaderLinkProps extends ButtonProps {
2020
/** Title for the link */
21-
label: string;
21+
label: ReactNode;
2222
/** Indicates if the link points to an external page */
2323
isExternal?: boolean;
2424
}

0 commit comments

Comments
 (0)