mirror of
https://github.com/domfelipe/mika-agent-assist.git
synced 2026-08-07 09:16:46 +00:00
Changes
Co-authored-by: domfelipe <53182096+domfelipe@users.noreply.github.com>
This commit is contained in:
parent
aec46d386e
commit
7583dae5ce
2 changed files with 10 additions and 12 deletions
|
|
@ -17,12 +17,12 @@ import { TelegramOnboardingWizard } from "@/components/mika/telegram/TelegramOnb
|
|||
import { toast } from "sonner";
|
||||
import { cn } from "@/lib/utils";
|
||||
|
||||
const dashboardSearchSchema = z.object({
|
||||
status: fallback(z.string().optional(), undefined),
|
||||
});
|
||||
type DashboardSearch = { status?: string };
|
||||
|
||||
export const Route = createFileRoute("/painel/")({
|
||||
validateSearch: zodValidator(dashboardSearchSchema),
|
||||
validateSearch: (search: Record<string, unknown>): DashboardSearch => ({
|
||||
status: typeof search.status === "string" ? search.status : undefined,
|
||||
}),
|
||||
component: DashboardPage,
|
||||
});
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue