add icon sidebar
This commit is contained in:
parent
b1c5405ff7
commit
e981ce7481
|
|
@ -36,7 +36,6 @@ export const getValidationSchema = () => {
|
|||
"at-least-one-correct",
|
||||
"At least one answer must be correct",
|
||||
(answers: any) => {
|
||||
console.log(answers, "answers");
|
||||
return answers?.some(
|
||||
(answer: any) =>
|
||||
answer?.isCorrect === true || answer?.isCorrect === 1,
|
||||
|
|
|
|||
|
|
@ -1,5 +1,5 @@
|
|||
import { TCrudRoute, TMenuItem } from "./types/App";
|
||||
import { FaHome, FaMoneyBill, FaSellcast } from "react-icons/fa";
|
||||
import { FaCashRegister, FaHome, FaMoneyBill, FaPaperclip, FaSellcast, FaTag, FaUser } from "react-icons/fa";
|
||||
import React from "react";
|
||||
|
||||
const Dummy = React.lazy(() => import("./Pages/Home/Dummy"));
|
||||
|
|
@ -43,12 +43,14 @@ import { ABILITIES_ENUM, ABILITIES_VALUES_ENUM } from "./enums/abilities";
|
|||
import { ParamsEnum } from "./enums/params";
|
||||
import { TbCategory } from "react-icons/tb";
|
||||
import { UserTypeEnum } from "./enums/UserType";
|
||||
import { FaTags } from "react-icons/fa6";
|
||||
import { MdGrade } from "react-icons/md";
|
||||
|
||||
export const menuItems: TMenuItem[] = [
|
||||
{
|
||||
header: "page_header.dashboard",
|
||||
element: <Dummy />,
|
||||
icon: <TbCategory />,
|
||||
icon: <FaHome />,
|
||||
text: "sidebar.dashboard",
|
||||
path: "/",
|
||||
abilities: ABILITIES_ENUM?.PASS,
|
||||
|
|
@ -59,7 +61,7 @@ export const menuItems: TMenuItem[] = [
|
|||
{
|
||||
header: "page_header.grade",
|
||||
element: <Grade />,
|
||||
icon: <FaMoneyBill />,
|
||||
icon: <TbCategory />,
|
||||
text: "sidebar.grade",
|
||||
path: `/${ABILITIES_ENUM?.GRADE}`,
|
||||
abilities: ABILITIES_ENUM?.GRADE,
|
||||
|
|
@ -69,7 +71,7 @@ export const menuItems: TMenuItem[] = [
|
|||
{
|
||||
header: "page_header.tags",
|
||||
element: <Tags />,
|
||||
icon: <FaMoneyBill />,
|
||||
icon: <FaTags />,
|
||||
text: "sidebar.tags",
|
||||
path: `/${ABILITIES_ENUM?.TAG}`,
|
||||
abilities: ABILITIES_ENUM?.TAG,
|
||||
|
|
@ -77,9 +79,9 @@ export const menuItems: TMenuItem[] = [
|
|||
prevPath: 0,
|
||||
},
|
||||
{
|
||||
header: "page_header.tags",
|
||||
header: "page_header.report",
|
||||
element: <Report />,
|
||||
icon: <FaMoneyBill />,
|
||||
icon: <FaPaperclip />,
|
||||
text: "sidebar.report",
|
||||
path: `/${ABILITIES_ENUM?.Report}`,
|
||||
abilities: ABILITIES_ENUM?.Report,
|
||||
|
|
@ -89,7 +91,7 @@ export const menuItems: TMenuItem[] = [
|
|||
{
|
||||
header: "page_header.student",
|
||||
element: <Student />,
|
||||
icon: <FaMoneyBill />,
|
||||
icon: <MdGrade />,
|
||||
text: "sidebar.student",
|
||||
path: `/${ABILITIES_ENUM?.STUDENT}`,
|
||||
abilities: ABILITIES_ENUM?.STUDENT,
|
||||
|
|
@ -99,7 +101,7 @@ export const menuItems: TMenuItem[] = [
|
|||
{
|
||||
header: "page_header.reSeller",
|
||||
element: <ReSeller />,
|
||||
icon: <FaSellcast />,
|
||||
icon: <FaCashRegister />,
|
||||
text: "sidebar.reseller",
|
||||
path: `/${ABILITIES_ENUM?.RE_SELLER}`,
|
||||
abilities: ABILITIES_ENUM?.RE_SELLER,
|
||||
|
|
@ -109,7 +111,7 @@ export const menuItems: TMenuItem[] = [
|
|||
{
|
||||
header: "page_header.user",
|
||||
element: <User />,
|
||||
icon: <FaSellcast />,
|
||||
icon: <FaUser />,
|
||||
text: "sidebar.user",
|
||||
path: `/${ABILITIES_ENUM?.USER}`,
|
||||
abilities: ABILITIES_ENUM?.USER,
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user