From 4832f1e8e6b63a539ea5751bb83fe31855710fa9 Mon Sep 17 00:00:00 2001 From: Joey Yu Date: Mon, 22 Apr 2024 13:30:17 -0400 Subject: [PATCH] chore: add a helpful msg --- .../components/modals/CreateSequenceModal.tsx | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/src/renderer/routes/test_sequencer_panel/components/modals/CreateSequenceModal.tsx b/src/renderer/routes/test_sequencer_panel/components/modals/CreateSequenceModal.tsx index a65ac0027..95abdf1d6 100644 --- a/src/renderer/routes/test_sequencer_panel/components/modals/CreateSequenceModal.tsx +++ b/src/renderer/routes/test_sequencer_panel/components/modals/CreateSequenceModal.tsx @@ -20,9 +20,13 @@ import { } from "@/renderer/components/ui/form"; const formSchema = z.object({ - name: z.string().min(1).max(50).regex(/\S/), + name: z.string().min(1).max(50).regex(/\S/, { + message: "The sequence name should not contain white spaces", + }), description: z.string().max(100), - projectPath: z.string().min(1).regex(/\S/), + projectPath: z.string().min(1).regex(/\S/, { + message: "The project path should not contain white spaces", + }), }); export const CreateSequenceModal = () => {