add close button to publish results modal

This commit is contained in:
hzrd149
2024-03-12 07:51:56 -05:00
parent ae3bf1a8e7
commit 3363ff3ca8

View File

@@ -22,6 +22,7 @@ import {
SliderTrack,
SliderFilledTrack,
SliderThumb,
ModalCloseButton,
} from "@chakra-ui/react";
import dayjs from "dayjs";
import { useForm } from "react-hook-form";
@@ -298,6 +299,7 @@ export default function PostModal({
<Modal isOpen={isOpen} onClose={onClose} size="4xl">
<ModalOverlay />
<ModalContent>
{publishAction && <ModalCloseButton />}
<ModalBody display="flex" flexDirection="column" padding={["2", "2", "4"]} gap="2">
{renderContent()}
</ModalBody>