Browse Source

fix build

pull/128/head
Sacha Weatherstone 3 years ago
parent
commit
dbd4025ead
  1. 4
      src/components/Form/DynamicForm.tsx
  2. 6
      src/pages/Map.tsx

4
src/components/Form/DynamicForm.tsx

@ -6,6 +6,7 @@ import { Subtle } from "@components/UI/Typography/Subtle.js";
import { import {
Control, Control,
DeepPartial, DeepPartial,
DefaultValues,
FieldValues, FieldValues,
Path, Path,
SubmitHandler, SubmitHandler,
@ -36,7 +37,8 @@ export interface DynamicFormProps<T extends FieldValues> {
onSubmit: SubmitHandler<T>; onSubmit: SubmitHandler<T>;
submitType?: "onChange" | "onSubmit"; submitType?: "onChange" | "onSubmit";
hasSubmitButton?: boolean; hasSubmitButton?: boolean;
defaultValues?: DeepPartial<T>; // defaultValues?: DeepPartial<T>;
defaultValues?: DefaultValues<T>;
fieldGroups: { fieldGroups: {
label: string; label: string;
description: string; description: string;

6
src/pages/Map.tsx

@ -14,9 +14,9 @@ import {
ZoomInIcon, ZoomInIcon,
ZoomOutIcon, ZoomOutIcon,
} from "lucide-react"; } from "lucide-react";
import maplibregl from "maplibre-gl";
import { useCallback, useEffect, useState } from "react"; import { useCallback, useEffect, useState } from "react";
import { Layer, Map as MapGL, Marker, Source, useMap } from "react-map-gl"; import { Layer, Map as MapGL, Marker, Source, useMap } from "react-map-gl";
import maplibre from "react-map-gl/maplibre";
export const MapPage = (): JSX.Element => { export const MapPage = (): JSX.Element => {
const { nodes, waypoints } = useDevice(); const { nodes, waypoints } = useDevice();
@ -117,7 +117,9 @@ export const MapPage = (): JSX.Element => {
// addWaypoint(waypoint); // addWaypoint(waypoint);
// connection?.sendWaypoint(waypoint, "broadcast"); // connection?.sendWaypoint(waypoint, "broadcast");
// }} // }}
mapLib={maplibregl}
// @ts-ignore
mapLib={maplibre}
attributionControl={false} attributionControl={false}
renderWorldCopies={false} renderWorldCopies={false}
maxPitch={0} maxPitch={0}

Loading…
Cancel
Save