* fix(layout): Fix Settings layout in firefox * chore(availableForHire): Remove available for hire setting * feat(helpers): Use helper components for Settings layout * fix(map): Fix undefined lang requested * feat(settings): Expand Settings page functionality * chore(pledge): Remove pledge from Settings * fix(about): Adjust AboutSettings layout * fix(portfolio): Improve PortfolioSettings layout * fix(email): Improve EmailSettings layout * fix(settings): Align save buttons with form fields * fix(AHP): Format AHP * fix(DangerZone): Adjust DangerZone layout * fix(projectSettings): Change Button Copy * fix(CertSettings): Fix certificate claim logic * chore(lint): Lint
26 lines
500 B
JavaScript
26 lines
500 B
JavaScript
import React from 'react';
|
|
import PropTypes from 'prop-types';
|
|
import { FullWidthRow } from '../../../helperComponents';
|
|
|
|
const propTypes = {
|
|
children: PropTypes.oneOfType([
|
|
PropTypes.string,
|
|
PropTypes.element,
|
|
PropTypes.node
|
|
])
|
|
};
|
|
|
|
function SectionHeader({ children }) {
|
|
return (
|
|
<FullWidthRow>
|
|
<h2>{ children }</h2>
|
|
<hr />
|
|
</FullWidthRow>
|
|
);
|
|
}
|
|
|
|
SectionHeader.displayName = 'SectionHeader';
|
|
SectionHeader.propTypes = propTypes;
|
|
|
|
export default SectionHeader;
|