Fix missed props destructure (#3344)
This commit is contained in:
@@ -39,6 +39,7 @@ export type Props = {
|
|||||||
footerDivider?: boolean;
|
footerDivider?: boolean;
|
||||||
appendedContent?: React.ReactNode;
|
appendedContent?: React.ReactNode;
|
||||||
headerButton?: React.ReactNode;
|
headerButton?: React.ReactNode;
|
||||||
|
headerContent?: React.ReactNode;
|
||||||
};
|
};
|
||||||
|
|
||||||
export const Modal: React.FC<Props> = ({
|
export const Modal: React.FC<Props> = ({
|
||||||
@@ -72,6 +73,7 @@ export const Modal: React.FC<Props> = ({
|
|||||||
footerDivider,
|
footerDivider,
|
||||||
appendedContent,
|
appendedContent,
|
||||||
headerButton,
|
headerButton,
|
||||||
|
headerContent,
|
||||||
}) => {
|
}) => {
|
||||||
const [showState, setShowState] = useState<boolean>();
|
const [showState, setShowState] = useState<boolean>();
|
||||||
const backdropRef = useRef<HTMLDivElement>(null);
|
const backdropRef = useRef<HTMLDivElement>(null);
|
||||||
@@ -233,6 +235,7 @@ export const Modal: React.FC<Props> = ({
|
|||||||
</div>
|
</div>
|
||||||
}
|
}
|
||||||
</div>
|
</div>
|
||||||
|
{headerContent}
|
||||||
<button
|
<button
|
||||||
type='button'
|
type='button'
|
||||||
className='close'
|
className='close'
|
||||||
|
Reference in New Issue
Block a user