feat: Add Admin panel with provider management and import job tracking
This commit is contained in:
parent
862677181c
commit
6ea9eaf2ee
@ -1,7 +1,7 @@
|
||||
import {useAuth} from "@/contexts/AuthContext.tsx";
|
||||
import {type ReactNode, useEffect, useState} from "react";
|
||||
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 {ProviderManager} from "@/features/admin/components/ProviderManager.tsx";
|
||||
import {FailedImportJobs} from "@/features/admin/components/FailedImportJobs.tsx";
|
||||
@ -23,7 +23,9 @@ const Admin = () => {
|
||||
// TODO: add user role verification
|
||||
}, [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 }[] = [
|
||||
{
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user