From d0bc9422f3927df6a21399cbc5e4d888369ef608 Mon Sep 17 00:00:00 2001 From: evlist Date: Sun, 27 Nov 2022 12:29:30 +0100 Subject: [PATCH] Addind a few @ts-ignore :( ... --- src/components/gpx-import/GpxImport.tsx | 11 +---------- src/components/map/Map.tsx | 4 ++-- 2 files changed, 3 insertions(+), 12 deletions(-) diff --git a/src/components/gpx-import/GpxImport.tsx b/src/components/gpx-import/GpxImport.tsx index 42d8f66..a0bc688 100644 --- a/src/components/gpx-import/GpxImport.tsx +++ b/src/components/gpx-import/GpxImport.tsx @@ -2,6 +2,7 @@ import { Component } from 'solid-js'; import CloudUploadIcon from '@suid/icons-material/CloudUpload'; +// @ts-ignore import GPX from '../../lib/gpx-parser-builder/src/gpx'; import css from './GpxImport.module.css'; @@ -38,16 +39,6 @@ const GpxImport: Component = () => { }, }, }); - // pushGpx(db, { - // gpx, - // metadata: { - // lastModified: new Date(file.lastModified).toISOString(), - // importDate: new Date().toISOString(), - // name: file.name, - // size: file.size, - // type: file.type, - // }, - // }); }, false ); diff --git a/src/components/map/Map.tsx b/src/components/map/Map.tsx index 02134e6..99dc30f 100644 --- a/src/components/map/Map.tsx +++ b/src/components/map/Map.tsx @@ -17,7 +17,7 @@ import 'ol/ol.css'; import './Map.css'; import { Collection } from 'ol'; import { Point } from 'ol/geom'; -import { Circle, Fill, Stroke, Style, Icon } from 'ol/style'; +import { Style, Icon } from 'ol/style'; import GetLocation, { getCurrentLocation } from '../get-location'; import ShowLocationIcon from '../get-location/ShowLocationIcon.svg'; import { Back, Forward } from '../back-forward'; @@ -177,8 +177,8 @@ const Map: Component = () => { setMap(olMap); }); - // @ts-ignore return ( + // @ts-ignore