From 38062206d1fb21a43861f5bb446859cd176ed648 Mon Sep 17 00:00:00 2001 From: Reza_ashrafi Date: Sat, 8 Jan 2022 16:03:11 +0330 Subject: [PATCH] reza added author name --- src/Views/Home/Main/index.js | 5 ++++- src/components/SidebarCategoryHover/list.js | 2 +- src/redux/data.js | 23 +++++++++++++++++++++ 3 files changed, 28 insertions(+), 2 deletions(-) diff --git a/src/Views/Home/Main/index.js b/src/Views/Home/Main/index.js index dc66e46..6faca8d 100644 --- a/src/Views/Home/Main/index.js +++ b/src/Views/Home/Main/index.js @@ -7,9 +7,12 @@ function Main({ activeComponent }) {
-

+

{activeComponent?.content?.name}

+ + {activeComponent?.name && `Designed by: ${activeComponent?.author}`} + {activeComponent?.content?.component} {activeComponent?.content?.code && ( diff --git a/src/components/SidebarCategoryHover/list.js b/src/components/SidebarCategoryHover/list.js index 21077ee..df435fb 100644 --- a/src/components/SidebarCategoryHover/list.js +++ b/src/components/SidebarCategoryHover/list.js @@ -1,6 +1,6 @@ import React, { useState, useEffect } from "react"; import _, { set } from "lodash"; -import Col from "./Col"; +import Col from "./col"; export default function List({ activeItem, item, setActiveItem, colLength }) { const [cols, setCols] = useState(null); diff --git a/src/redux/data.js b/src/redux/data.js index 587a819..c7aafc0 100644 --- a/src/redux/data.js +++ b/src/redux/data.js @@ -25,6 +25,7 @@ import Navbar from "../components/Navbar"; const components = [ { name : "Button", + author : 'Andalib', props : [ ], @@ -36,6 +37,7 @@ const components = [ }, { name : "Tag", + author : 'Andalib', props : [ ], @@ -47,6 +49,7 @@ const components = [ }, { name: "Input", + author : "Ashrafi", props: [ { name: "maxLength", @@ -255,6 +258,7 @@ const components = [ }, { name: "Search", + author: "Ashrafi", props: [], content: { name: "Search", @@ -264,6 +268,7 @@ const components = [ }, { name: "Search with suggestion", + author : "Ashrafi", props: [], content: { name: "Search with suggestion", @@ -273,6 +278,7 @@ const components = [ }, { name : "Radio", + author : "Ashrafi", props : [ ], @@ -284,6 +290,7 @@ const components = [ }, { name : "Checkbox", + author: "Ashrafi", props : [ ], @@ -295,6 +302,7 @@ const components = [ }, { name : "Select box - Radio", + author: "Ashrafi", props : [ ], @@ -306,6 +314,7 @@ const components = [ }, { name : "Select box - Checkbox", + author: "Ashrafi", props : [ ], @@ -317,6 +326,7 @@ const components = [ }, { name : "Switch", + author: "Ashrafi", props : [ ], @@ -328,6 +338,7 @@ const components = [ }, { name : "Expandable products filter", + author: "Ashrafi", props : [ ], @@ -339,6 +350,7 @@ const components = [ }, { name : "Sidebar catergory", + author: "Ashrafi", props : [ ], @@ -350,6 +362,7 @@ const components = [ }, { name : "Slider", + author: "Ashrafi", props : [ ], @@ -361,6 +374,7 @@ const components = [ }, { name : "Range", + author: "Ashrafi", props : [ ], @@ -372,6 +386,7 @@ const components = [ }, { name : "Counter", + author: "Andalib", props : [ ], @@ -383,6 +398,7 @@ const components = [ }, { name : "Alert", + author: "Andalib", props : [ ], @@ -394,6 +410,7 @@ const components = [ }, { name : "Toast", + author: "Andalib", props : [ ], @@ -405,6 +422,7 @@ const components = [ }, { name : "Star rating", + author: "Ashrafi", props : [ ], @@ -416,6 +434,7 @@ const components = [ }, { name : "Chart", + author: "Ashrafi", props : [ ], @@ -427,6 +446,7 @@ const components = [ }, { name : "Circular progressbar", + author: "Ashrafi", props : [ ], @@ -438,6 +458,7 @@ const components = [ }, { name : "Stepper", + author: "Ashrafi", props : [ ], @@ -449,6 +470,7 @@ const components = [ }, { name : "Product", + author: "Andalib", props : [ ], @@ -460,6 +482,7 @@ const components = [ }, { name : "Navbar", + author: "Andalib", props : [ ],