Refactor AdminPage and remove AdminPanel component: Simplify admin navigation by redirecting to preferences page and eliminating the AdminPanel component, streamlining the admin interface.
All checks were successful
Deploy with Docker Compose / deploy (push) Successful in 6m21s

This commit is contained in:
Julien Froidefond
2025-12-19 14:02:06 +01:00
parent 82069c74bc
commit 14c767cfc0
16 changed files with 440 additions and 252 deletions

View File

@@ -1,13 +1,17 @@
"use client";
import { ButtonHTMLAttributes, ReactNode, ElementType } from "react";
import { ButtonHTMLAttributes, ReactNode, ElementType, AnchorHTMLAttributes } from "react";
import Link from "next/link";
interface ButtonProps extends ButtonHTMLAttributes<HTMLButtonElement> {
type ButtonProps = ButtonHTMLAttributes<HTMLButtonElement> & {
variant?: "primary" | "secondary" | "success" | "danger" | "ghost";
size?: "sm" | "md" | "lg";
children: ReactNode;
as?: ElementType;
}
} & (
| { as?: Exclude<ElementType, typeof Link> }
| { as: typeof Link; href: string }
);
const variantClasses = {
primary: "btn-primary border transition-colors",