From 7cb7c0e00270e22fb26c974c97cae5756e8314cb Mon Sep 17 00:00:00 2001 From: Anton Date: Mon, 1 Jan 2024 21:21:23 +0100 Subject: [PATCH] fixed small compiler warnings --- src/ModalContent.tsx | 2 +- src/api/directus.ts | 1 + src/pages/Projects.tsx | 2 +- 3 files changed, 3 insertions(+), 2 deletions(-) diff --git a/src/ModalContent.tsx b/src/ModalContent.tsx index 1b54cf26..fa87f39c 100644 --- a/src/ModalContent.tsx +++ b/src/ModalContent.tsx @@ -1,4 +1,4 @@ -import { useEffect, useState } from 'react' +import { useState } from 'react' type ChapterProps = { clickAction?: () => void diff --git a/src/api/directus.ts b/src/api/directus.ts index 56c43be0..fe9a90c5 100644 --- a/src/api/directus.ts +++ b/src/api/directus.ts @@ -15,6 +15,7 @@ export type Place = { position?: Point; picture: string; subname: string; + [key: string]: any; }; export type Tag = { diff --git a/src/pages/Projects.tsx b/src/pages/Projects.tsx index 6763d14b..1adb421f 100644 --- a/src/pages/Projects.tsx +++ b/src/pages/Projects.tsx @@ -15,7 +15,7 @@ export default function Projects() { const loadProjects = async () => { const projects = await projectsApi?.getItems(); - setProjects(projects as Project[]); + setProjects(projects as any); } useEffect(() => {