diff --git a/frontend/src/components/Modal.tsx b/frontend/src/components/Modal.tsx index 9fafce81b5..2dda636c95 100644 --- a/frontend/src/components/Modal.tsx +++ b/frontend/src/components/Modal.tsx @@ -1,5 +1,11 @@ import { Button } from '@heroui/button' -import { Modal, ModalContent, ModalHeader, ModalBody, ModalFooter } from '@heroui/modal' +import { + Modal, + ModalContent, + ModalHeader, + ModalBody, + ModalFooter, +} from '@heroui/modal' import React from 'react' import { FaBolt } from 'react-icons/fa6' import type { ModalProps } from 'types/modal' @@ -17,43 +23,159 @@ const DialogComp: React.FC = ({ description, }: ModalProps) => { return ( - + - - {title} -

{description}

+ {/* ---------- HEADER ---------- */} + + + + {description && ( +

+ {description} +

+ )}
- -

Summary

- + + {/* ---------- BODY (SCROLLABLE) ---------- */} + +

Summary

+ + + {hint && ( -
-

+

+

How to tackle it

+
)} + {children} -
- + {/* ---------- DIVIDER ---------- */} +
+ + {/* ---------- FOOTER ---------- */} + {button.icon} {button.label} +