From 0c6c885eedcc65703c7b99b98af81a2b9acfcd67 Mon Sep 17 00:00:00 2001 From: Jorrin Date: Sat, 9 Nov 2024 17:24:53 +0100 Subject: [PATCH] fix build issues --- src/components/books/book-item.tsx | 2 +- src/components/layout/collapse-menu-button.tsx | 2 +- src/components/layout/menu.tsx | 1 - src/components/layout/navbar.tsx | 2 +- src/components/layout/theme-toggle.tsx | 1 - src/main.tsx | 1 - src/routes/about.tsx | 1 - src/routes/contact.tsx | 1 - src/routes/featured.tsx | 2 +- src/routes/upload.tsx | 1 - 10 files changed, 4 insertions(+), 10 deletions(-) diff --git a/src/components/books/book-item.tsx b/src/components/books/book-item.tsx index 56fcf9d..d83eb9f 100644 --- a/src/components/books/book-item.tsx +++ b/src/components/books/book-item.tsx @@ -1,4 +1,4 @@ -import React, { useState } from "react"; +import { useState } from "react"; import { BookItem, BookItemWithExternalDownloads } from "@/api/backend/types"; import { Card, CardContent } from "../ui/card"; import PlaceholderImage from "@/assets/placeholder.png"; diff --git a/src/components/layout/collapse-menu-button.tsx b/src/components/layout/collapse-menu-button.tsx index 530c88d..1bf8726 100644 --- a/src/components/layout/collapse-menu-button.tsx +++ b/src/components/layout/collapse-menu-button.tsx @@ -1,4 +1,4 @@ -import React, { useState } from "react"; +import { useState } from "react"; import { ChevronDown, Dot, LucideIcon } from "lucide-react"; import { cn } from "@/lib/utils"; diff --git a/src/components/layout/menu.tsx b/src/components/layout/menu.tsx index dcf2028..c106099 100644 --- a/src/components/layout/menu.tsx +++ b/src/components/layout/menu.tsx @@ -1,4 +1,3 @@ -import React from "react"; import { Ellipsis } from "lucide-react"; import { cn } from "@/lib/utils"; diff --git a/src/components/layout/navbar.tsx b/src/components/layout/navbar.tsx index 8f7f6cf..a5f43b0 100644 --- a/src/components/layout/navbar.tsx +++ b/src/components/layout/navbar.tsx @@ -1,4 +1,4 @@ -import React, { useEffect } from "react"; +import { useEffect } from "react"; import { SheetMenu } from "./sheet-menu"; import { useLayout } from "@/hooks/use-layout"; import { useLayoutStore } from "@/stores/layout"; diff --git a/src/components/layout/theme-toggle.tsx b/src/components/layout/theme-toggle.tsx index a619bbf..5a8510d 100644 --- a/src/components/layout/theme-toggle.tsx +++ b/src/components/layout/theme-toggle.tsx @@ -1,5 +1,4 @@ import { Moon, Sun } from "lucide-react"; -import React from "react"; import { Button } from "@/components/ui/button"; import { Tooltip, TooltipContent, TooltipTrigger, TooltipProvider } from "@/components/ui/tooltip"; import { useSettingsStore } from "@/stores/settings"; diff --git a/src/main.tsx b/src/main.tsx index 690a0e7..be86eef 100644 --- a/src/main.tsx +++ b/src/main.tsx @@ -1,4 +1,3 @@ -import * as React from "react"; import { StrictMode, useEffect, useMemo } from "react"; import ReactDOM from "react-dom/client"; import { RouterProvider, createRouter } from "@tanstack/react-router"; diff --git a/src/routes/about.tsx b/src/routes/about.tsx index e3f0bf0..239084c 100644 --- a/src/routes/about.tsx +++ b/src/routes/about.tsx @@ -1,4 +1,3 @@ -import * as React from "react"; import { Card, CardDescription, CardHeader, CardTitle } from "@/components/ui/card"; import { NavLink } from "@/components/ui/nav-link"; import { createFileRoute } from "@tanstack/react-router"; diff --git a/src/routes/contact.tsx b/src/routes/contact.tsx index 45dabee..7b04d51 100644 --- a/src/routes/contact.tsx +++ b/src/routes/contact.tsx @@ -1,4 +1,3 @@ -import * as React from "react"; import { Card, CardDescription, CardHeader, CardTitle } from "@/components/ui/card"; import { Button } from "@/components/ui/button"; import { createFileRoute } from "@tanstack/react-router"; diff --git a/src/routes/featured.tsx b/src/routes/featured.tsx index ef95031..3779fb2 100644 --- a/src/routes/featured.tsx +++ b/src/routes/featured.tsx @@ -1,5 +1,5 @@ import { createFileRoute } from "@tanstack/react-router"; -import React, { useMemo } from "react"; +import { useMemo } from "react"; import { getTrendingQueryOptions } from "@/api/backend/trending/trending"; import { useSuspenseQuery } from "@tanstack/react-query"; import { BookList } from "@/components/books/book-list"; diff --git a/src/routes/upload.tsx b/src/routes/upload.tsx index 4c7c01c..7817f6d 100644 --- a/src/routes/upload.tsx +++ b/src/routes/upload.tsx @@ -1,4 +1,3 @@ -import * as React from "react"; import { Card, CardDescription, CardHeader, CardTitle } from "@/components/ui/card"; import { Button } from "@/components/ui/button"; import { createFileRoute, Link, redirect } from "@tanstack/react-router";