Factorise Button and Input components

This commit is contained in:
Timothy Armes
2024-10-21 15:19:28 +02:00
parent 0aaf14e112
commit 4181b92670
24 changed files with 393 additions and 233 deletions
+7 -3
View File
@@ -16,6 +16,8 @@ import MarkerClusterGroup from "react-leaflet-cluster";
import { debouncedHoveredListIdAtom, mapBoundsAtom } from "@/atoms";
import { MapEvents } from "@/components/MapEvents";
import { Button } from "./Button";
export type MarkerRef = {
getMarker: () => L.Marker<any>;
bounce: () => void;
@@ -238,12 +240,14 @@ export const Map = ({
</MapContainer>
<div className="flex items-center justify-center lg:hidden">
<button
className="p-3 text-primary-900 dark:text-white"
<Button
intent="tertiary"
size="compacted"
className="p-3"
onClick={onScrollToTable}
>
<FaAngleDoubleDown />
</button>
</Button>
</div>
</section>
);