Skip to content

Commit

Permalink
fix deploy storybook
Browse files Browse the repository at this point in the history
  • Loading branch information
dottyy committed Jun 7, 2024
1 parent 4d7297e commit f7b7db4
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions src/components/elements/Inputs/Map/RHFMap.tsx
Original file line number Diff line number Diff line change
@@ -1,15 +1,17 @@
import { useT } from "@transifex/react";
import dynamic from "next/dynamic";
import { PropsWithChildren, useEffect } from "react";
import { useController, UseControllerProps, UseFormReturn } from "react-hook-form";

import InputWrapper, { InputWrapperProps } from "@/components/elements/Inputs/InputElements/InputWrapper";
import { MapContainer } from "@/components/elements/Map-mapbox/Map";
import { AdditionalPolygonProperties } from "@/components/elements/Map-mapbox/MapLayers/ShapePropertiesModal";
import { useGetV2ENTITYUUID } from "@/generated/apiComponents";
import { singularEntityNameToPlural } from "@/helpers/entity";
import { useDebounce } from "@/hooks/useDebounce";
import { Entity, SingularEntityName } from "@/types/common";

const Map = dynamic(() => import("@/components/elements/Map-mapbox/Map"), { ssr: false });

export interface RHFMapProps extends UseControllerProps, InputWrapperProps {
onChangeCapture?: () => void;
formHook: UseFormReturn;
Expand Down Expand Up @@ -85,7 +87,7 @@ const RHFMap = ({

return (
<InputWrapper {...inputWrapperProps}>
<MapContainer
<Map
geojson={value}
onGeojsonChange={_onChange}
editable
Expand Down

0 comments on commit f7b7db4

Please sign in to comment.