mirror of
https://github.com/domfelipe/mika-agent-assist.git
synced 2026-08-07 16:16:50 +00:00
Changes
Co-authored-by: domfelipe <53182096+domfelipe@users.noreply.github.com>
This commit is contained in:
parent
e0b7fa9942
commit
11d8c0c19a
7 changed files with 1229 additions and 0 deletions
28
src/routes/painel.cronjobs.nova.tsx
Normal file
28
src/routes/painel.cronjobs.nova.tsx
Normal file
|
|
@ -0,0 +1,28 @@
|
|||
"use client";
|
||||
|
||||
import { createFileRoute, Link, useNavigate } from "@tanstack/react-router";
|
||||
import { ArrowLeft } from "lucide-react";
|
||||
import { Button } from "@/components/ui/button";
|
||||
import { CronjobWizard } from "@/components/mika/cronjobs/CronjobWizard";
|
||||
|
||||
export const Route = createFileRoute("/painel/cronjobs/nova")({
|
||||
component: NovaCronjobPage,
|
||||
});
|
||||
|
||||
function NovaCronjobPage() {
|
||||
const navigate = useNavigate();
|
||||
return (
|
||||
<div className="space-y-4">
|
||||
<Button asChild variant="ghost" size="sm">
|
||||
<Link to="/painel/cronjobs">
|
||||
<ArrowLeft className="h-4 w-4 mr-2" /> Voltar
|
||||
</Link>
|
||||
</Button>
|
||||
<h1 className="text-2xl font-bold">Nova automação</h1>
|
||||
<CronjobWizard
|
||||
onCreated={() => navigate({ to: "/painel/cronjobs" })}
|
||||
onCancel={() => navigate({ to: "/painel/cronjobs" })}
|
||||
/>
|
||||
</div>
|
||||
);
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue