From 1549ab907a9ae0ceda80fb8b6fa38c5b59f003a6 Mon Sep 17 00:00:00 2001 From: Anton Tranelis Date: Fri, 27 Jun 2025 12:00:05 +0200 Subject: [PATCH] fix linting --- lib/package-lock.json | 2 +- lib/package.json | 2 +- .../Profile/Subcomponents/GalleryForm.tsx | 2 +- .../Profile/Subcomponents/GalleryView.tsx | 2 -- lib/src/types/index.ts | 20 ------------------- 5 files changed, 3 insertions(+), 25 deletions(-) delete mode 100644 lib/src/types/index.ts diff --git a/lib/package-lock.json b/lib/package-lock.json index 17479aa6..7333fda3 100644 --- a/lib/package-lock.json +++ b/lib/package-lock.json @@ -37,7 +37,7 @@ "react-leaflet-cluster": "^2.1.0", "react-markdown": "^9.0.1", "react-photo-album": "^3.0.2", - "react-router-dom": "^6.16.0", + "react-router-dom": "^6.23.0", "react-toastify": "^9.1.3", "remark-breaks": "^4.0.0", "tiptap-markdown": "^0.8.10", diff --git a/lib/package.json b/lib/package.json index f663a4d3..809a7d33 100644 --- a/lib/package.json +++ b/lib/package.json @@ -125,7 +125,7 @@ "react-leaflet-cluster": "^2.1.0", "react-markdown": "^9.0.1", "react-photo-album": "^3.0.2", - "react-router-dom": "^6.16.0", + "react-router-dom": "^6.23.0", "react-toastify": "^9.1.3", "remark-breaks": "^4.0.0", "tiptap-markdown": "^0.8.10", diff --git a/lib/src/Components/Profile/Subcomponents/GalleryForm.tsx b/lib/src/Components/Profile/Subcomponents/GalleryForm.tsx index a118c5dc..ee5586bc 100644 --- a/lib/src/Components/Profile/Subcomponents/GalleryForm.tsx +++ b/lib/src/Components/Profile/Subcomponents/GalleryForm.tsx @@ -101,7 +101,7 @@ export const GalleryForm = ({ state, setState }: Props) => { {images.map((image, index) => (
{`Gallery { const images = item.gallery?.flatMap((g, index) => { const file = g.directus_files_id - // if it's just a string, skip it if (typeof file === 'string') return [] - // otherwise it's the object you want const { id, type, width, height } = file return [ { diff --git a/lib/src/types/index.ts b/lib/src/types/index.ts deleted file mode 100644 index 07f8f4c5..00000000 --- a/lib/src/types/index.ts +++ /dev/null @@ -1,20 +0,0 @@ -export * from './AssetsApi' -export * from './FormState' -export * from './Item' -export * from './ItemsApi' -export * from './ItemType' -export * from './LayerProps' -export * from './MarkerIcon' -export * from './Permission' -export * from './PermissionAction' -export * from './PermissionCondition' -export * from './PopupFormState' -export * from './Profile' -export * from './Relation' -export * from './UserApi' -export * from './UtopiaMapProps' -export * from './UserItem' -export * from './Tag' - -// Special handling for SVG type -export type { ReactComponent as SVGComponent, default as SVGSrc } from './SVG' \ No newline at end of file