ColumnHeader: remove unused children prop

This commit is contained in:
Alex Gleason 2022-11-30 11:38:03 -06:00
parent 7675860429
commit f93f4c9a8b
No known key found for this signature in database
GPG key ID: 7211D1F99744FBB7

View file

@ -7,12 +7,10 @@ import { useSoapboxConfig } from 'soapbox/hooks';
import { Card, CardBody, CardHeader, CardTitle } from '../card/card';
interface IColumnHeader extends Pick<IColumn, 'label' | 'backHref' |'transparent'> {
children?: React.ReactNode
}
type IColumnHeader = Pick<IColumn, 'label' | 'backHref' |'transparent'>;
/** Contains the column title with optional back button. */
const ColumnHeader: React.FC<IColumnHeader> = ({ label, backHref, transparent, children }) => {
const ColumnHeader: React.FC<IColumnHeader> = ({ label, backHref, transparent }) => {
const history = useHistory();
const handleBackClick = () => {
@ -34,7 +32,6 @@ const ColumnHeader: React.FC<IColumnHeader> = ({ label, backHref, transparent, c
onBackClick={handleBackClick}
>
<CardTitle title={label} />
{children}
</CardHeader>
);
};