mirror of
https://github.com/freeCodeCamp/freeCodeCamp.git
synced 2026-05-28 18:26:54 +00:00
refactor(client): remove dataPlaywrightTestLabel prop from SectionHeader (#64289)
This commit is contained in:
@@ -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>
|
||||
);
|
||||
|
||||
Reference in New Issue
Block a user