diff --git a/public/images/unit-types/marasi-drive/1_bedroom_a.jpg b/public/images/unit-types/marasi-drive/1_bedroom_a.jpg new file mode 100644 index 0000000..de3503f Binary files /dev/null and b/public/images/unit-types/marasi-drive/1_bedroom_a.jpg differ diff --git a/public/images/unit-types/marasi-drive/1_bedroom_b.jpg b/public/images/unit-types/marasi-drive/1_bedroom_b.jpg new file mode 100644 index 0000000..5d970a5 Binary files /dev/null and b/public/images/unit-types/marasi-drive/1_bedroom_b.jpg differ diff --git a/public/images/unit-types/marasi-drive/1_bedroom_c.jpg b/public/images/unit-types/marasi-drive/1_bedroom_c.jpg new file mode 100644 index 0000000..06c9912 Binary files /dev/null and b/public/images/unit-types/marasi-drive/1_bedroom_c.jpg differ diff --git a/public/images/unit-types/marasi-drive/1_bedroom_d.jpg b/public/images/unit-types/marasi-drive/1_bedroom_d.jpg new file mode 100644 index 0000000..f4a83ed Binary files /dev/null and b/public/images/unit-types/marasi-drive/1_bedroom_d.jpg differ diff --git a/public/images/unit-types/marasi-drive/2_bedroom_a.jpg b/public/images/unit-types/marasi-drive/2_bedroom_a.jpg new file mode 100644 index 0000000..a185111 Binary files /dev/null and b/public/images/unit-types/marasi-drive/2_bedroom_a.jpg differ diff --git a/public/images/unit-types/marasi-drive/2_bedroom_b.jpg b/public/images/unit-types/marasi-drive/2_bedroom_b.jpg new file mode 100644 index 0000000..5816dbb Binary files /dev/null and b/public/images/unit-types/marasi-drive/2_bedroom_b.jpg differ diff --git a/public/images/unit-types/marasi-drive/studio_2.jpg b/public/images/unit-types/marasi-drive/studio_2.jpg new file mode 100644 index 0000000..3af6afb Binary files /dev/null and b/public/images/unit-types/marasi-drive/studio_2.jpg differ diff --git a/public/images/unit-types/marasi-drive/studio_flex.jpg b/public/images/unit-types/marasi-drive/studio_flex.jpg new file mode 100644 index 0000000..65272a7 Binary files /dev/null and b/public/images/unit-types/marasi-drive/studio_flex.jpg differ diff --git a/src/components/ProjectSelect.tsx b/src/components/ProjectSelect.tsx index 3d844c5..899b489 100644 --- a/src/components/ProjectSelect.tsx +++ b/src/components/ProjectSelect.tsx @@ -1,18 +1,8 @@ /* eslint-disable react-hooks/exhaustive-deps */ import clsx from "clsx"; import { useEffect, useState } from "react"; - -interface Project { - title: string; - img: string; - types: { - name: string; - img: string; - wings: string; - floors: string; - area: string; - }[]; -} +import Project from "../types/Project"; +import Select from "./ui/Select"; function ProjectSelect({ projects, @@ -28,26 +18,38 @@ function ProjectSelect({ }, [selectedProject]); return ( -
- {projects.map((project) => ( -
setSelectedProject(project)} - > - {project.title} -

{project.title}

-
- ))} -
+ <> +
+ {projects.map((project) => ( +
setSelectedProject(project)} + > + {project.title} +

{project.title}

+
+ ))} +
+ +