diff --git a/src/api/resources/Palmistry.ts b/src/api/resources/Palmistry.ts index 1e63920..bba6244 100644 --- a/src/api/resources/Palmistry.ts +++ b/src/api/resources/Palmistry.ts @@ -4,10 +4,19 @@ export interface Payload { formData: FormData; } -export type Response = IPalmistryLine[]; +export type Response = { + fingers: IPalmistryFinger[]; + lines: IPalmistryLine[]; +}; + +export interface IPalmistryFinger { + name: string; + point: IPalmistryPoint; +} export interface IPalmistryLine { - line: string; + name: string; + line: number; points: IPalmistryPoint[]; } diff --git a/src/components/Modal/index.tsx b/src/components/Modal/index.tsx index 009f600..d3e0236 100644 --- a/src/components/Modal/index.tsx +++ b/src/components/Modal/index.tsx @@ -7,6 +7,7 @@ interface ModalProps { isCloseButtonVisible?: boolean; className?: string; containerClassName?: string; + type?: "hidden" | "normal"; onClose?: () => void; } @@ -16,6 +17,7 @@ function Modal({ isCloseButtonVisible = true, className = "", containerClassName = "", + type = "normal", onClose, }: ModalProps): JSX.Element { const handleClose = (event: React.MouseEvent) => { @@ -34,9 +36,14 @@ function Modal({ }; }, [open]); - if (!open) return <>; + if (!open && type === "normal") return <>; return ( -
+
{isCloseButtonVisible && (