update src/Views/Home/Sidebar/index.js and data.js

master
mahdi 3 years ago
parent 01fe974648
commit 722d02da3f
  1. 8
      public/images/barnamenegar-icon.svg
  2. 6
      src/Views/Home/Sidebar/index.js
  3. 12
      src/redux/data.js

File diff suppressed because one or more lines are too long

After

Width:  |  Height:  |  Size: 815 KiB

@ -5,20 +5,20 @@ import { components } from "../../../redux/actions";
function Sidebar({ list, setActive }) { function Sidebar({ list, setActive }) {
return ( return (
<div className="lg:flex lg:flex-col lg:w-1/6 lg:h-full ltr"> <div className="lg:flex lg:flex-col lg:w-1/6 lg:h-full ltr">
<header className="w-full h-16 flex flex-row items-center py-4 px-4 bg-gray-600"> <header className="w-full h-16 flex flex-row items-center p-4 bg-gray-600">
<img <img
src={"https://barnamenegar.ir/static/media/white logo 2.7ffbddbc.svg"} src={"https://barnamenegar.ir/static/media/white logo 2.7ffbddbc.svg"}
alt="logo" alt="logo"
className="w-full" className="w-full"
/> />
</header> </header>
<ul className="w-full max-h-full flex-1 p-0 m-0 list-none divided divide-y overflow-y-scroll divide-blue-600 border-r border-gray-600"> <ul className="w-full max-h-full flex-1 p-0 m-0 border-r border-gray-600 divided divide-y divide-gray-900 overflow-y-scroll list-none">
{list {list
.sort((a, b) => (a.name > b.name ? 1 : -1)) .sort((a, b) => (a.name > b.name ? 1 : -1))
.map((material, index) => ( .map((material, index) => (
<li <li
key={index} key={index}
className="w-full h-12 py-3 px-3 cursor-pointer" className="w-full h-12 flex items-center p-2 odd:bg-gray-300 even:bg-slate-400 odd:text-gray-600 even:text-white text-center font-sansbold cursor-pointer"
onClick={() => setActive(material)} onClick={() => setActive(material)}
> >
{material.name} {material.name}

@ -74,7 +74,7 @@
// import CustomToast from "./components/CustomToast"; // import CustomToast from "./components/CustomToast";
// import IconText from "./components/IconText"; // import IconText from "./components/IconText";
// import CardDesign2 from "./components/CardDesign2"; // import CardDesign2 from "./components/CardDesign2";
// import ButtonDivTag from "./components/ButtonDivTag"; import ButtonDivTag from "../components/ButtonDivTag";
import Button from "../components/Button"; import Button from "../components/Button";
// import LeafletMap from "./components/LeafletMap"; // import LeafletMap from "./components/LeafletMap";
@ -104,6 +104,16 @@ const components = [
code: null, code: null,
}, },
}, },
{
name: "ButtonDivTag",
author: "Andalib",
props: [],
content: {
name: "ButtonDivTag",
component: <ButtonDivTag />,
code: null,
},
},
]; ];
export default components; export default components;

Loading…
Cancel
Save