From 76c438a37d261c6ae92673e6579e298138b78d2e Mon Sep 17 00:00:00 2001 From: Mikael Siidorow Date: Wed, 30 Oct 2024 14:20:26 +0200 Subject: [PATCH] fix: JSX imports from React --- apps/cms/src/emails/helper-components.tsx | 1 + apps/cms/src/emails/utils/utils.ts | 1 + apps/web/src/components/board-grid/index.tsx | 1 + apps/web/src/components/committee-card/index.tsx | 1 + apps/web/src/components/committee-list/index.tsx | 1 + apps/web/src/components/honors-list/index.tsx | 1 + apps/web/src/components/lexical/lexical-serializer.tsx | 1 + apps/web/src/components/pagination/index.tsx | 1 + apps/web/src/lib/utils.ts | 1 + packages/ui/lib/components/sheet/index.tsx | 1 + packages/ui/lib/icons/index.tsx | 1 + 11 files changed, 11 insertions(+) diff --git a/apps/cms/src/emails/helper-components.tsx b/apps/cms/src/emails/helper-components.tsx index 11b5d5ee..3161a923 100644 --- a/apps/cms/src/emails/helper-components.tsx +++ b/apps/cms/src/emails/helper-components.tsx @@ -2,6 +2,7 @@ import { type NewsItem } from "@tietokilta/cms-types/payload"; import { type EditorState, type Node } from "@tietokilta/cms-types/lexical"; import { Link } from "@react-email/components"; +import type { JSX } from "react"; import { IS_BOLD, IS_CODE, diff --git a/apps/cms/src/emails/utils/utils.ts b/apps/cms/src/emails/utils/utils.ts index 8f9fe1e9..4a689424 100644 --- a/apps/cms/src/emails/utils/utils.ts +++ b/apps/cms/src/emails/utils/utils.ts @@ -1,4 +1,5 @@ import type { Node } from "@tietokilta/cms-types/lexical"; +import type { JSX } from "react"; export type Locale = (typeof locales)[number]; diff --git a/apps/web/src/components/board-grid/index.tsx b/apps/web/src/components/board-grid/index.tsx index 441484a6..981efa02 100644 --- a/apps/web/src/components/board-grid/index.tsx +++ b/apps/web/src/components/board-grid/index.tsx @@ -1,6 +1,7 @@ import type { Board, BoardMember, Media } from "@tietokilta/cms-types/payload"; import { MailIcon, SendIcon, PhoneIcon } from "@tietokilta/ui"; import Image from "next/image"; +import type { JSX } from "react"; import TikLogo from "../../assets/TiK-logo.png"; import { cn, insertSoftHyphens } from "../../lib/utils"; diff --git a/apps/web/src/components/committee-card/index.tsx b/apps/web/src/components/committee-card/index.tsx index 23e3681a..9a5f2af1 100644 --- a/apps/web/src/components/committee-card/index.tsx +++ b/apps/web/src/components/committee-card/index.tsx @@ -5,6 +5,7 @@ import type { } from "@tietokilta/cms-types/payload"; import Image from "next/image"; import { ChevronDownIcon, GavelIcon } from "@tietokilta/ui"; +import type { JSX } from "react"; import TikLogo from "../../assets/TiK-logo.png"; import { cn, insertSoftHyphens } from "../../lib/utils"; diff --git a/apps/web/src/components/committee-list/index.tsx b/apps/web/src/components/committee-list/index.tsx index 8029611d..eafc31df 100644 --- a/apps/web/src/components/committee-list/index.tsx +++ b/apps/web/src/components/committee-list/index.tsx @@ -1,4 +1,5 @@ import type { CommitteesYearBlockNode } from "@tietokilta/cms-types/lexical"; +import type { JSX } from "react"; import { fetchCommittees } from "../../lib/api/committees"; import { CommitteeCard } from "../committee-card"; import { getCurrentLocale } from "../../locales/server"; diff --git a/apps/web/src/components/honors-list/index.tsx b/apps/web/src/components/honors-list/index.tsx index 30daea72..2ddbf7c6 100644 --- a/apps/web/src/components/honors-list/index.tsx +++ b/apps/web/src/components/honors-list/index.tsx @@ -1,6 +1,7 @@ import type { AwardedHonor, Honor } from "@tietokilta/cms-types/payload"; import { ChevronDownIcon } from "@tietokilta/ui"; import _ from "lodash"; +import type { JSX } from "react"; import { cn } from "../../lib/utils"; function AwardedPersonDropdown({ diff --git a/apps/web/src/components/lexical/lexical-serializer.tsx b/apps/web/src/components/lexical/lexical-serializer.tsx index d36bcec6..291ec2d6 100644 --- a/apps/web/src/components/lexical/lexical-serializer.tsx +++ b/apps/web/src/components/lexical/lexical-serializer.tsx @@ -9,6 +9,7 @@ import { FileIcon } from "@tietokilta/ui"; import Image from "next/image"; import Link from "next/link"; import { type Media } from "@tietokilta/cms-types/payload"; +import type { JSX } from "react"; import { cn, insertSoftHyphens, diff --git a/apps/web/src/components/pagination/index.tsx b/apps/web/src/components/pagination/index.tsx index a3dbb850..872b295b 100644 --- a/apps/web/src/components/pagination/index.tsx +++ b/apps/web/src/components/pagination/index.tsx @@ -9,6 +9,7 @@ import { } from "@tietokilta/ui"; import type { ButtonProps } from "@tietokilta/ui"; import Link from "next/link"; +import type { JSX } from "react"; import { cn } from "../../lib/utils"; function Pagination({ diff --git a/apps/web/src/lib/utils.ts b/apps/web/src/lib/utils.ts index e307ef2d..91896502 100644 --- a/apps/web/src/lib/utils.ts +++ b/apps/web/src/lib/utils.ts @@ -1,6 +1,7 @@ import type { EditorState, Node } from "@tietokilta/cms-types/lexical"; import { clsx, type ClassValue } from "clsx"; import { twMerge } from "tailwind-merge"; +import type { JSX } from "react"; import { type Locale } from "../locales/server"; import { type EventQuotaWithSignups, diff --git a/packages/ui/lib/components/sheet/index.tsx b/packages/ui/lib/components/sheet/index.tsx index 3e46e666..30d7e59d 100644 --- a/packages/ui/lib/components/sheet/index.tsx +++ b/packages/ui/lib/components/sheet/index.tsx @@ -1,6 +1,7 @@ import * as SheetPrimitive from "@radix-ui/react-dialog"; import { cva, type VariantProps } from "class-variance-authority"; import * as React from "react"; +import type { JSX } from "react"; import { XIcon } from "../../icons"; import { cn } from "../../utils"; diff --git a/packages/ui/lib/icons/index.tsx b/packages/ui/lib/icons/index.tsx index 7786fdf7..ef15fae0 100644 --- a/packages/ui/lib/icons/index.tsx +++ b/packages/ui/lib/icons/index.tsx @@ -42,6 +42,7 @@ import { HandshakeIcon, } from "lucide-react"; import React from "react"; +import type { JSX } from "react"; import { default as TikLogo } from "./tik-logo"; import NavGuildIcon from "./nav/guild"; import NavFuksisIcon from "./nav/fuksis";