types: Abstract inline interfaces to @plunk/types

This commit is contained in:
Dries Augustyns
2026-01-01 10:52:43 +01:00
parent 38da58e5e9
commit 85c992a9f9
95 changed files with 1370 additions and 1350 deletions
+2 -2
View File
@@ -26,7 +26,7 @@ import {
SelectItemWithDescription,
SelectTrigger,
SelectValue,
Switch
Switch,
} from '@plunk/ui';
import type {Template, Workflow, WorkflowExecution, WorkflowStep, WorkflowTransition} from '@plunk/db';
import {DashboardLayout} from '../../components/DashboardLayout';
@@ -47,7 +47,7 @@ import {
Trash2,
UserCog,
Users,
Webhook
Webhook,
} from 'lucide-react';
import Link from 'next/link';
import {useRouter} from 'next/router';
+1 -5
View File
@@ -221,11 +221,7 @@ export default function WorkflowsPage() {
size="sm"
onClick={() => handleToggleEnabled(workflow.id, workflow.enabled)}
>
{workflow.enabled ? (
<PowerOff className="h-4 w-4" />
) : (
<Power className="h-4 w-4" />
)}
{workflow.enabled ? <PowerOff className="h-4 w-4" /> : <Power className="h-4 w-4" />}
</Button>
<Link href={`/workflows/${workflow.id}`}>
<Button variant="ghost" size="sm">