From 6260c64126f8b2a0884f484550c5fa7757c59f92 Mon Sep 17 00:00:00 2001 From: akhisud3195 Date: Fri, 14 Feb 2025 12:41:58 +0530 Subject: [PATCH] Reorder scenario fields --- .../projects/[projectId]/simulation/app.tsx | 36 +++++++++---------- 1 file changed, 18 insertions(+), 18 deletions(-) diff --git a/apps/rowboat/app/projects/[projectId]/simulation/app.tsx b/apps/rowboat/app/projects/[projectId]/simulation/app.tsx index 5efe8df5..87cf9804 100644 --- a/apps/rowboat/app/projects/[projectId]/simulation/app.tsx +++ b/apps/rowboat/app/projects/[projectId]/simulation/app.tsx @@ -437,15 +437,15 @@ function ScenarioViewer({
-
CONTEXT
-
{scenario.context}
+
DESCRIPTION
+
{scenario.description}
-
DESCRIPTION
-
{scenario.description}
+
CONTEXT
+
{scenario.context}
@@ -462,16 +462,16 @@ function ScenarioEditor({ onCancel: () => void; }) { const [name, setName] = useState(scenario.name); - const [context, setContext] = useState(scenario.context || ''); const [description, setDescription] = useState(scenario.description); + const [context, setContext] = useState(scenario.context || ''); const handleSubmit = (e: React.FormEvent) => { e.preventDefault(); onSave({ ...scenario, name, - context, description, + context, }); }; @@ -509,18 +509,6 @@ function ScenarioEditor({
-
-
CONTEXT
-