Skip to content

Commit

Permalink
fix build
Browse files Browse the repository at this point in the history
  • Loading branch information
sachaw committed Jul 28, 2023
1 parent c9b06ed commit dbd4025
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 3 deletions.
4 changes: 3 additions & 1 deletion src/components/Form/DynamicForm.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ import { Subtle } from "@components/UI/Typography/Subtle.js";
import {
Control,
DeepPartial,
DefaultValues,
FieldValues,
Path,
SubmitHandler,
Expand Down Expand Up @@ -36,7 +37,8 @@ export interface DynamicFormProps<T extends FieldValues> {
onSubmit: SubmitHandler<T>;
submitType?: "onChange" | "onSubmit";
hasSubmitButton?: boolean;
defaultValues?: DeepPartial<T>;
// defaultValues?: DeepPartial<T>;
defaultValues?: DefaultValues<T>;
fieldGroups: {
label: string;
description: string;
Expand Down
6 changes: 4 additions & 2 deletions src/pages/Map.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -14,9 +14,9 @@ import {
ZoomInIcon,
ZoomOutIcon,
} from "lucide-react";
import maplibregl from "maplibre-gl";
import { useCallback, useEffect, useState } from "react";
import { Layer, Map as MapGL, Marker, Source, useMap } from "react-map-gl";
import maplibre from "react-map-gl/maplibre";

export const MapPage = (): JSX.Element => {
const { nodes, waypoints } = useDevice();
Expand Down Expand Up @@ -117,7 +117,9 @@ export const MapPage = (): JSX.Element => {
// addWaypoint(waypoint);
// connection?.sendWaypoint(waypoint, "broadcast");
// }}
mapLib={maplibregl}

// @ts-ignore
mapLib={maplibre}
attributionControl={false}
renderWorldCopies={false}
maxPitch={0}
Expand Down

0 comments on commit dbd4025

Please sign in to comment.