frontend-refactor-1
This commit is contained in:
@@ -5,9 +5,10 @@ import PageHeader from '../../components/common/PageHeader';
|
||||
import ComponentCard from '../../components/common/ComponentCard';
|
||||
import { automationApi, AutomationRule } from '../../api/automation.api';
|
||||
import { useToast } from '../../components/ui/toast/ToastContainer';
|
||||
import { BoltIcon, PlusIcon, TrashBinIcon, PencilIcon, PaperPlaneIcon, CloseIcon } from '../../icons';
|
||||
import { BoltIcon, PlusIcon, TrashBinIcon, PencilIcon, PaperPlaneIcon, CloseIcon, TaskIcon, ClockIcon } from '../../icons';
|
||||
import { useSiteStore } from '../../store/siteStore';
|
||||
import { useSectorStore } from '../../store/sectorStore';
|
||||
import ModuleNavigationTabs from '../../components/navigation/ModuleNavigationTabs';
|
||||
|
||||
export default function AutomationRules() {
|
||||
const navigate = useNavigate();
|
||||
@@ -109,6 +110,12 @@ export default function AutomationRules() {
|
||||
);
|
||||
};
|
||||
|
||||
// Automation navigation tabs
|
||||
const automationTabs = [
|
||||
{ label: 'Rules', path: '/automation/rules', icon: <BoltIcon /> },
|
||||
{ label: 'Tasks', path: '/automation/tasks', icon: <ClockIcon /> },
|
||||
];
|
||||
|
||||
return (
|
||||
<>
|
||||
<PageMeta title="Automation Rules" />
|
||||
|
||||
@@ -4,9 +4,10 @@ import PageHeader from '../../components/common/PageHeader';
|
||||
import ComponentCard from '../../components/common/ComponentCard';
|
||||
import { automationApi, ScheduledTask } from '../../api/automation.api';
|
||||
import { useToast } from '../../components/ui/toast/ToastContainer';
|
||||
import { ClockIcon, CheckCircleIcon, XCircleIcon, ArrowRightIcon } from '../../icons';
|
||||
import { ClockIcon, CheckCircleIcon, XCircleIcon, ArrowRightIcon, BoltIcon } from '../../icons';
|
||||
import { useSiteStore } from '../../store/siteStore';
|
||||
import { useSectorStore } from '../../store/sectorStore';
|
||||
import ModuleNavigationTabs from '../../components/navigation/ModuleNavigationTabs';
|
||||
|
||||
export default function AutomationTasks() {
|
||||
const toast = useToast();
|
||||
@@ -95,6 +96,12 @@ export default function AutomationTasks() {
|
||||
return true;
|
||||
});
|
||||
|
||||
// Automation navigation tabs
|
||||
const automationTabs = [
|
||||
{ label: 'Rules', path: '/automation/rules', icon: <BoltIcon /> },
|
||||
{ label: 'Tasks', path: '/automation/tasks', icon: <ClockIcon /> },
|
||||
];
|
||||
|
||||
return (
|
||||
<>
|
||||
<PageMeta title="Scheduled Tasks" />
|
||||
@@ -107,6 +114,7 @@ export default function AutomationTasks() {
|
||||
color: 'blue',
|
||||
}}
|
||||
/>
|
||||
<ModuleNavigationTabs tabs={automationTabs} />
|
||||
|
||||
<div className="flex items-center gap-4">
|
||||
<div className="flex-1">
|
||||
|
||||
Reference in New Issue
Block a user