feat: unified admin panel + back buttons everywhere
AdminPanel.js: sidebar nav с 4 разделами (Настройки API, ЮKassa, Расходы AI, Пользователи) Встроены: SettingsSection (API-ключи), SpendingSection (расходы), AdminBilling Breadcrumb навигация /system/page.js: теперь рендерит AdminPanel Header: 'Расходы' → 'Админ' (ссылка на /system), убран TrendingUp BackButton.js: переиспользуемая кнопка назад Добавлена на /drafts, /billing, /plans
This commit is contained in:
@@ -2,6 +2,7 @@
|
||||
import { useState, useEffect, useCallback } from 'react';
|
||||
import { Clock, Check, X, Edit3, Trash2, RefreshCw, Loader2, Calendar, Image as ImgIcon, Zap } from 'lucide-react';
|
||||
import Link from 'next/link';
|
||||
import BackButton from '@/components/BackButton';
|
||||
|
||||
const STATUS_TABS = [
|
||||
{ v: 'pending', label: 'Ожидают', color: 'text-accent' },
|
||||
@@ -77,6 +78,7 @@ export default function DraftsPage() {
|
||||
|
||||
return (
|
||||
<main className="max-w-3xl mx-auto p-4 sm:p-6">
|
||||
<BackButton />
|
||||
<div className="flex items-center justify-between mb-6">
|
||||
<div>
|
||||
<h1 className="text-xl font-bold flex items-center gap-2">
|
||||
|
||||
Reference in New Issue
Block a user