From 3f5ae4685e96fa3087f5fbd70783859a519c6e59 Mon Sep 17 00:00:00 2001 From: "CHIEFSOFT\\ameye" Date: Sun, 14 Sep 2025 07:21:33 -0400 Subject: [PATCH] URL Configuration --- .../product/settingsTab/GeneralTab.jsx | 24 +++++++++++++++---- .../product/settingsTab/Settings.jsx | 2 +- .../product/settingsTab/URLConfiguration.jsx | 8 +++++++ 3 files changed, 29 insertions(+), 5 deletions(-) create mode 100644 src/component/product/settingsTab/URLConfiguration.jsx diff --git a/src/component/product/settingsTab/GeneralTab.jsx b/src/component/product/settingsTab/GeneralTab.jsx index 645da8a..9bf5c66 100644 --- a/src/component/product/settingsTab/GeneralTab.jsx +++ b/src/component/product/settingsTab/GeneralTab.jsx @@ -6,8 +6,17 @@ import NoYesBooleanDropdown from './NoYesBooleanDropdown'; import {IoMdArrowDropdown} from 'react-icons/io'; import queryKeys from '../../../services/queryKeys'; import sortObjectByListOrder from '../../../helpers/sortObjectByListOrder'; +import URLConfiguration from "./URLConfiguration"; -const GeneralTab = memo(({name = 'Full Name', data, isCustom, productData, backendValues, setFieldsChanged}) => { +const GeneralTab = memo(({ + name = 'Full Name', + data, + tabKey, + isCustom, + productData, + backendValues, + setFieldsChanged + }) => { const queryClient = useQueryClient() @@ -81,7 +90,7 @@ const GeneralTab = memo(({name = 'Full Name', data, isCustom, productData, backe } submitSettings.mutate(reqData) } - + console.log(tabKey); return ( <> {backendValues?.isFetching || !backendValues?.data ? @@ -101,8 +110,15 @@ const GeneralTab = memo(({name = 'Full Name', data, isCustom, productData, backe : <> {isCustom === true ? - + <> + {(tabKey === 'template_tab') && } + {(tabKey === 'url_config_tab') && } + {(tabKey==='color_scheme_tab')} && <>This is Color Tab} + :
diff --git a/src/component/product/settingsTab/Settings.jsx b/src/component/product/settingsTab/Settings.jsx index d183e1a..d6b454f 100644 --- a/src/component/product/settingsTab/Settings.jsx +++ b/src/component/product/settingsTab/Settings.jsx @@ -109,7 +109,7 @@ const Settings = memo(({productData}) => { // id={value.controls} role="tabpanel" // aria-labelledby={key} > - +
))} diff --git a/src/component/product/settingsTab/URLConfiguration.jsx b/src/component/product/settingsTab/URLConfiguration.jsx new file mode 100644 index 0000000..440bbf2 --- /dev/null +++ b/src/component/product/settingsTab/URLConfiguration.jsx @@ -0,0 +1,8 @@ + + +const URLConfiguration=()=>{ + + return <>URL CONFIG +} + +export default URLConfiguration \ No newline at end of file