feat: Add Admin panel with provider management and import job tracking #22
@ -1,7 +1,7 @@
|
|||||||
import {useAuth} from "@/contexts/AuthContext.tsx";
|
import {useAuth} from "@/contexts/AuthContext.tsx";
|
||||||
import {type ReactNode, useEffect, useState} from "react";
|
import {type ReactNode, useEffect, useState} from "react";
|
||||||
import {useNavigate} from "react-router";
|
import {useNavigate} from "react-router";
|
||||||
import {AlertCircle, ArrowLeft, FileStack, Server, Shield} from "lucide-react";
|
import {ArrowLeft, FileStack, Server, Shield} from "lucide-react";
|
||||||
import {Button} from "@/components/ui/button.tsx";
|
import {Button} from "@/components/ui/button.tsx";
|
||||||
import {ProviderManager} from "@/features/admin/components/ProviderManager.tsx";
|
import {ProviderManager} from "@/features/admin/components/ProviderManager.tsx";
|
||||||
import {FailedImportJobs} from "@/features/admin/components/FailedImportJobs.tsx";
|
import {FailedImportJobs} from "@/features/admin/components/FailedImportJobs.tsx";
|
||||||
@ -23,7 +23,9 @@ const Admin = () => {
|
|||||||
// TODO: add user role verification
|
// TODO: add user role verification
|
||||||
}, [isAuthenticated, isLoading, navigate]);
|
}, [isAuthenticated, isLoading, navigate]);
|
||||||
|
|
||||||
const failedImports = [];
|
// const { data } = useGetMangaImportJobs();
|
||||||
|
//
|
||||||
|
// const failedImports = data?.data?.filter(dto => dto.status === MangaImportJobDTOStatus.FAILED)?.length;
|
||||||
|
|
||||||
const tabs: { id: Tab; label: string; icon: ReactNode; badge?: number }[] = [
|
const tabs: { id: Tab; label: string; icon: ReactNode; badge?: number }[] = [
|
||||||
{
|
{
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user