From 7a832325f3426f4e8144854b1d323a598194c208 Mon Sep 17 00:00:00 2001 From: suryacp23 Date: Tue, 21 Jul 2026 16:03:37 +0530 Subject: [PATCH] button theme changed --- src/components/forms/DynamicForm.tsx | 8 ++++- src/components/forms/fields/WfLookupField.tsx | 2 +- src/components/reusable/Input.tsx | 2 +- src/components/reusable/Select.tsx | 2 +- src/components/reusable/Textarea.tsx | 2 +- src/components/rv/RecordView.tsx | 36 +++++++++---------- src/lib/format.ts | 6 +++- src/screens/CallsPage.tsx | 10 ++++-- src/screens/DailyLogsPage.tsx | 19 +++++++--- src/screens/MyOrdersPage.tsx | 10 ++++-- src/screens/OrdersPage.tsx | 10 ++++-- src/screens/StoresPage.tsx | 19 +++++++--- src/styles/styles.css | 19 ++++++++-- 13 files changed, 104 insertions(+), 41 deletions(-) diff --git a/src/components/forms/DynamicForm.tsx b/src/components/forms/DynamicForm.tsx index eee7ac6..be493a2 100644 --- a/src/components/forms/DynamicForm.tsx +++ b/src/components/forms/DynamicForm.tsx @@ -103,6 +103,9 @@ export function DynamicForm({ client, activityId: initialActivityId, instanceId: setValues(defaultValues); setLoading(false); + if (res.activity_name) { + onActivityChange?.(res.activity_name); + } } }) .catch((err: any) => { @@ -161,7 +164,10 @@ export function DynamicForm({ client, activityId: initialActivityId, instanceId: }; if (loading) { - return
; + const formattedActivity = currentActivityId + ? currentActivityId.split('_').map(w => w.charAt(0).toUpperCase() + w.slice(1)).join(' ') + : 'form'; + return
; } if (error || !schema) { return
Failed to load form: {error}
; diff --git a/src/components/forms/fields/WfLookupField.tsx b/src/components/forms/fields/WfLookupField.tsx index 0d75493..568066e 100644 --- a/src/components/forms/fields/WfLookupField.tsx +++ b/src/components/forms/fields/WfLookupField.tsx @@ -73,7 +73,7 @@ export function WfLookupField({ label, required, value, onChange, client, config return ( {label && ( - + {label} {required && *} diff --git a/src/components/reusable/Select.tsx b/src/components/reusable/Select.tsx index ca8921e..1f5e6ce 100644 --- a/src/components/reusable/Select.tsx +++ b/src/components/reusable/Select.tsx @@ -21,7 +21,7 @@ export function Select({ label, hint, options = [], required, className, ...rest return (