diff --git a/src/components/palmistry/modal/modal.tsx b/src/components/palmistry/modal/modal.tsx
index 86ccb0e..50f804e 100644
--- a/src/components/palmistry/modal/modal.tsx
+++ b/src/components/palmistry/modal/modal.tsx
@@ -1,28 +1,39 @@
-import './modal.css';
+import "./modal.css";
export enum ModalType {
- Error = 'error',
+ Error = "error",
}
type Props = {
children: React.ReactNode;
type?: ModalType;
noCloseButton?: boolean;
+ modalClassName?: string;
onClose: () => void;
};
export default function Modal(props: Props) {
- const className = ['modal'];
+ const className = ["modal"];
+
+ if (props.modalClassName?.length) {
+ className.push(props.modalClassName);
+ }
if (props.type === ModalType.Error) {
- className.push('modal_type_error');
+ className.push("modal_type_error");
}
return (
-
+
{!props.noCloseButton && (
-