fix(frontend): imports are unused

This commit is contained in:
tigattack
2025-09-25 00:41:29 +01:00
parent a32007f56b
commit 67a5462a25
26 changed files with 25 additions and 69 deletions

View File

@@ -24,7 +24,7 @@ import {
Settings as SettingsIcon,
X,
} from "lucide-react";
import React, { useEffect, useState } from "react";
import { useEffect, useState } from "react";
import { useTheme } from "../contexts/ThemeContext";
import { dashboardPreferencesAPI } from "../utils/api";

View File

@@ -1,5 +1,5 @@
import { AlertCircle, CheckCircle, Shield, UserPlus } from "lucide-react";
import React, { useState } from "react";
import { useState } from "react";
import { useAuth } from "../contexts/AuthContext";
const FirstTimeAdminSetup = () => {

View File

@@ -1,5 +1,5 @@
import { Check, Edit2, X } from "lucide-react";
import React, { useEffect, useRef, useState } from "react";
import { useEffect, useRef, useState } from "react";
import { Link } from "react-router-dom";
const InlineEdit = ({

View File

@@ -1,11 +1,5 @@
import { Check, ChevronDown, Edit2, X } from "lucide-react";
import React, {
useCallback,
useEffect,
useMemo,
useRef,
useState,
} from "react";
import { useCallback, useEffect, useMemo, useRef, useState } from "react";
const InlineGroupEdit = ({
value,

View File

@@ -5,10 +5,6 @@ import {
ChevronLeft,
ChevronRight,
Clock,
Cog,
Container,
FileText,
GitBranch,
Github,
Globe,
Home,
@@ -23,17 +19,16 @@ import {
Settings,
Shield,
Star,
User,
UserCircle,
Users,
Wrench,
X,
} from "lucide-react";
import React, { useCallback, useEffect, useRef, useState } from "react";
import { useCallback, useEffect, useRef, useState } from "react";
import { Link, useLocation } from "react-router-dom";
import { useAuth } from "../contexts/AuthContext";
import { useUpdateNotification } from "../contexts/UpdateNotificationContext";
import { dashboardAPI, formatRelativeTime, versionAPI } from "../utils/api";
import { dashboardAPI, versionAPI } from "../utils/api";
import UpgradeNotificationIcon from "./UpgradeNotificationIcon";
const Layout = ({ children }) => {

View File

@@ -1,4 +1,3 @@
import React from "react";
import { Navigate } from "react-router-dom";
import { useAuth } from "../contexts/AuthContext";

View File

@@ -1,5 +1,4 @@
import { ArrowUpCircle } from "lucide-react";
import React from "react";
const UpgradeNotificationIcon = ({ className = "h-4 w-4", show = true }) => {
if (!show) return null;