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}