ColumnHeader: remove unused children
prop
This commit is contained in:
parent
7675860429
commit
f93f4c9a8b
1 changed files with 2 additions and 5 deletions
|
@ -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>
|
||||
);
|
||||
};
|
||||
|
|
Loading…
Reference in a new issue