refactor(client): remove dataPlaywrightTestLabel prop from SectionHeader (#64289)

This commit is contained in:
Gary Yeung
2025-12-03 17:56:14 +08:00
committed by GitHub
parent e056608d82
commit a6e5748b25
@@ -4,21 +4,12 @@ import FullWidthRow from '../helpers/full-width-row';
type SectionHeaderProps = {
children: string | React.ReactNode | React.ReactElement;
dataPlaywrightTestLabel?: string;
};
function SectionHeader({
children,
dataPlaywrightTestLabel
}: SectionHeaderProps): JSX.Element {
function SectionHeader({ children }: SectionHeaderProps): JSX.Element {
return (
<FullWidthRow>
<h2
data-playwright-test-label={dataPlaywrightTestLabel}
className='text-center'
>
{children}
</h2>
<h2 className='text-center'>{children}</h2>
<hr />
</FullWidthRow>
);