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