feat: style improvements
This commit is contained in:
@@ -23,15 +23,12 @@ const Dialog: FunctionComponent<DialogProps> = ({
|
||||
if (!isOpen) return null;
|
||||
|
||||
return (
|
||||
<div class="fixed inset-0 z-50 flex items-center justify-center bg-black/50">
|
||||
<div class="fixed inset-0 z-150 flex items-center justify-center bg-black/50">
|
||||
<div class="w-full max-w-md rounded-[4rem] bg-white p-6 shadow-lg">
|
||||
<h2 class="mb-4 text-xl font-semibold">{title}</h2>
|
||||
<p class="mb-6">{content}</p>
|
||||
<p class="mb-6 text-sm sm:text-[1rem]">{content}</p>
|
||||
<div class="flex justify-end gap-4">
|
||||
<Button
|
||||
onClick={() => setIsOpen(false)}
|
||||
className="bg-gray-200 text-gray-800 hover:bg-gray-300"
|
||||
>
|
||||
<Button onClick={() => setIsOpen(false)} className="bg-gray-200 text-gray-800 hover:bg-gray-300">
|
||||
{cancelText}
|
||||
</Button>
|
||||
<Button
|
||||
@@ -49,4 +46,4 @@ const Dialog: FunctionComponent<DialogProps> = ({
|
||||
);
|
||||
};
|
||||
|
||||
export default Dialog;
|
||||
export default Dialog;
|
||||
|
||||
@@ -2,7 +2,7 @@ import { cn } from "@/utils/class-merge";
|
||||
import { FunctionComponent } from "preact";
|
||||
import { Dispatch, StateUpdater, useEffect } from "preact/hooks";
|
||||
|
||||
interface ModalWindowProps {
|
||||
export interface ModalWindowProps {
|
||||
isOpen?: boolean;
|
||||
setIsOpen?: Dispatch<StateUpdater<boolean>>;
|
||||
onClose?: () => void;
|
||||
|
||||
Reference in New Issue
Block a user