From fa9d7f69e43bd9b09d92f01918bbe401315f17e6 Mon Sep 17 00:00:00 2001 From: "CHIEFSOFT\\ameye" Date: Sun, 19 Oct 2025 13:04:10 -0400 Subject: [PATCH] Color configre cleanup --- .../settingsTab/ColorStyleConfigure.jsx | 23 +++++++++++-------- 1 file changed, 14 insertions(+), 9 deletions(-) diff --git a/src/component/product/settingsTab/ColorStyleConfigure.jsx b/src/component/product/settingsTab/ColorStyleConfigure.jsx index 8f73368..7d1b81e 100644 --- a/src/component/product/settingsTab/ColorStyleConfigure.jsx +++ b/src/component/product/settingsTab/ColorStyleConfigure.jsx @@ -29,8 +29,8 @@ const ColorStyleConfigure = memo(({name = 'Full Name', data, productData}) => { }) const templateResponse = colorStyleCss?.data - const currentTemUID = templateResponse?.current_template_uid - const templates = templateResponse?.templates + const currentColorUID = templateResponse?.current_colorstyle_uid + const color_styles = templateResponse?.color_styles const custom_template_name = templateResponse?.custom_template_name // console.log('data Template', templateResponse) @@ -105,25 +105,30 @@ const ColorStyleConfigure = memo(({name = 'Full Name', data, productData}) => { :
<> - {!templates?.length ? + {!color_styles?.length ?

No data Found

: - templates.map(color_style => ( + color_styles.map(color_style => (
-
-
+
+
{/*
*/} {/* {template.title}/*/} {/*
*/}

{color_style.title}

- {currentTemUID === color_style.color_style_uid ? + {currentColorUID === color_style.color_style_uid ? : - + }