From b26f8b4e0d44e005bb2a031d28db3412062094e6 Mon Sep 17 00:00:00 2001 From: "CHIEFSOFT\\ameye" Date: Wed, 23 Jul 2025 22:30:27 -0400 Subject: [PATCH] fix data --- src/component/product/ProductActive.jsx | 78 +++++++------------ .../product/settingsTab/GeneralTab.jsx | 2 +- 2 files changed, 31 insertions(+), 49 deletions(-) diff --git a/src/component/product/ProductActive.jsx b/src/component/product/ProductActive.jsx index 41d35ca..3f38495 100644 --- a/src/component/product/ProductActive.jsx +++ b/src/component/product/ProductActive.jsx @@ -5,6 +5,15 @@ import GeneralTab from "./settingsTab/GeneralTab"; export default function ProductActive(){ + const settingsObject = { + home_tab: { title: 'Home Page', controls: 'home', active: 'active show' }, + footer_tab: { title: 'Footer', controls: 'footer', active: '' }, + about_tab: { title: 'About Page', controls: 'about', active: '' }, + contact_tab: { title: 'Contact Page', controls: 'contact', active: '' }, + social_tab: { title: 'Socials', controls: 'social', active: '' }, + template_tab: { title: 'Template', controls: 'template', active: '' }, + color_scheme_tab: { title: 'Color Scheme', controls: 'color-scheme', active: '' }, + }; return( <> @@ -42,56 +51,29 @@ export default function ProductActive(){
-
- -
-
- -
- -
- -
-
- -
-
- -
-
- -
-
- -
+ <> + {Object.entries(settingsObject).map(([key, value]) => ( +
+ +
+ ))} +
diff --git a/src/component/product/settingsTab/GeneralTab.jsx b/src/component/product/settingsTab/GeneralTab.jsx index 3003619..41b345d 100644 --- a/src/component/product/settingsTab/GeneralTab.jsx +++ b/src/component/product/settingsTab/GeneralTab.jsx @@ -3,7 +3,7 @@ import React from 'react' export default function GeneralTab({name='Full Name'}) { return (
-
+

{name}