diff --git a/packages/web/components/ProfileSection.tsx b/packages/web/components/ProfileSection.tsx index b114c533..b54a4d44 100644 --- a/packages/web/components/ProfileSection.tsx +++ b/packages/web/components/ProfileSection.tsx @@ -19,22 +19,22 @@ import { FaTimes } from 'react-icons/fa'; import { BOX_TYPE } from 'utils/boxTypes'; export type ProfileSectionProps = { - title?: string; children?: React.ReactNode; onRemoveClick?: () => void; - canEdit?: boolean; displayEditButton?: boolean; - boxType: string; + canEdit?: boolean; + boxType?: string; + title?: string; }; // TODO If MetaBox is only used for Player profile maybe merge both component export const ProfileSection: React.FC = ({ children, - title, onRemoveClick, - canEdit, displayEditButton, + canEdit, boxType, + title, }) => { const { isOpen, onOpen, onClose } = useDisclosure(); @@ -85,25 +85,27 @@ export const ProfileSection: React.FC = ({ > {children} - - - - + + - {title} - - - {getBox(boxType, onClose)} - - + + {title} + + + {getBox(boxType, onClose)} + + + )} ); };