From 0f3d046a6951669a3d56cde181ce91276d7a7f49 Mon Sep 17 00:00:00 2001 From: Ferran Date: Mon, 27 May 2024 16:07:18 +0200 Subject: [PATCH] fix: type imports --- src/pages/articles/[...slug].astro | 3 ++- src/ui/components/atoms/worldGlobe/WorldGlobe.tsx | 6 ++++-- src/ui/components/organisms/contactForm/ContactForm.tsx | 3 ++- 3 files changed, 8 insertions(+), 4 deletions(-) diff --git a/src/pages/articles/[...slug].astro b/src/pages/articles/[...slug].astro index 6032a74a..45c0ffbd 100644 --- a/src/pages/articles/[...slug].astro +++ b/src/pages/articles/[...slug].astro @@ -1,5 +1,6 @@ --- -import { type CollectionEntry, getCollection } from "astro:content"; +import type { CollectionEntry } from "astro:content"; +import { getCollection } from "astro:content"; import { Image } from "astro:assets"; import BaseLayout from "@components/templates/baseLayout/BaseLayout.astro"; import "./_article.css"; diff --git a/src/ui/components/atoms/worldGlobe/WorldGlobe.tsx b/src/ui/components/atoms/worldGlobe/WorldGlobe.tsx index 82ca8494..69551df8 100644 --- a/src/ui/components/atoms/worldGlobe/WorldGlobe.tsx +++ b/src/ui/components/atoms/worldGlobe/WorldGlobe.tsx @@ -1,12 +1,14 @@ import { memo, useCallback, useEffect, useRef } from "react"; -import Globe, { type GlobeMethods } from "react-globe.gl"; +import Globe from "react-globe.gl"; +import type { GlobeMethods } from "react-globe.gl"; import * as Three from "three"; import countries from "@data/countries.geojson.json"; import "./world-globe.css"; import { calculateCenter } from "@components/atoms/worldGlobe/utils/calculateCenter"; import { WORLD_GLOBE_CONFIG } from "src/consts.ts"; import { renderPin } from "@components/atoms/worldGlobe/utils/renderPin"; -import { type ReactGlobePoint, refineCities } from "./utils/refineCities"; +import type { ReactGlobePoint } from "./utils/refineCities"; +import { refineCities } from "./utils/refineCities"; import horizontalArrow from "@assets/images/svg/left-arrow.svg"; import zoomIn from "@assets/images/svg/zoom-in.svg"; import zoomOut from "@assets/images/svg/zoom-out.svg"; diff --git a/src/ui/components/organisms/contactForm/ContactForm.tsx b/src/ui/components/organisms/contactForm/ContactForm.tsx index fc05a926..3b35af7a 100644 --- a/src/ui/components/organisms/contactForm/ContactForm.tsx +++ b/src/ui/components/organisms/contactForm/ContactForm.tsx @@ -1,4 +1,5 @@ -import { type FormEvent, useCallback, useRef, useState } from "react"; +import { useCallback, useRef, useState } from "react"; +import type { FormEvent } from "react"; import { useForm } from "react-hook-form"; import { zodResolver } from "@hookform/resolvers/zod"; import { z } from "zod";