From 6af832afe5f8439b7f84fce91d2c386807fd39b9 Mon Sep 17 00:00:00 2001 From: Tom Butcher Date: Mon, 24 Nov 2025 03:31:39 +0000 Subject: [PATCH] Add disabled prop to NewObjectButtons for enhanced control over button states --- .../Dashboard/common/NewObjectButtons.jsx | 14 ++++++++++---- 1 file changed, 10 insertions(+), 4 deletions(-) diff --git a/src/components/Dashboard/common/NewObjectButtons.jsx b/src/components/Dashboard/common/NewObjectButtons.jsx index 9888b92..61ec504 100644 --- a/src/components/Dashboard/common/NewObjectButtons.jsx +++ b/src/components/Dashboard/common/NewObjectButtons.jsx @@ -9,7 +9,8 @@ const NewObjectButtons = ({ onSubmit, formValid, submitLoading, - submitText = 'Done' + submitText = 'Done', + disabled = false }) => { return ( @@ -24,14 +25,18 @@ const NewObjectButtons = ({ ) : null} {currentStep < totalSteps - 1 ? ( - ) : (