clean
This commit is contained in:
parent
45a960bce3
commit
b2117bb0e4
|
|
@ -1,11 +1,8 @@
|
||||||
import React, { lazy, Suspense } from "react";
|
import React, { lazy, Suspense } from "react";
|
||||||
|
|
||||||
import { usePageTitleState } from "../../zustand/PageTitleState";
|
|
||||||
import { MdOutlineArrowForwardIos } from "react-icons/md";
|
|
||||||
import { useLocation, useNavigate } from "react-router-dom";
|
import { useLocation, useNavigate } from "react-router-dom";
|
||||||
import { getPrevPathRoute } from "../../utils/getPrevPathRoute";
|
import { getPrevPathRoute } from "../../utils/getPrevPathRoute";
|
||||||
import { deletePathSegments } from "../../utils/deletePathSegments";
|
import { deletePathSegments } from "../../utils/deletePathSegments";
|
||||||
import SpinContainer from "../../Components/Layout/SpinContainer";
|
|
||||||
import NavBarRightSide from "../../Components/Layout/Navbar/NavBarRightSide";
|
import NavBarRightSide from "../../Components/Layout/Navbar/NavBarRightSide";
|
||||||
import SearchFieldWithSelect from "../../Components/DataTable/SearchFieldWithSelect";
|
import SearchFieldWithSelect from "../../Components/DataTable/SearchFieldWithSelect";
|
||||||
import { search_array } from "../../Routes";
|
import { search_array } from "../../Routes";
|
||||||
|
|
@ -16,7 +13,6 @@ import { useTranslation } from "react-i18next";
|
||||||
const ChangePasswordModel = lazy(() => import("./model/AddModel"));
|
const ChangePasswordModel = lazy(() => import("./model/AddModel"));
|
||||||
|
|
||||||
const NavBar = ({ isOpen }: { isOpen: boolean }) => {
|
const NavBar = ({ isOpen }: { isOpen: boolean }) => {
|
||||||
const { PageTitle } = usePageTitleState((state) => state);
|
|
||||||
const location = useLocation();
|
const location = useLocation();
|
||||||
const navigate = useNavigate();
|
const navigate = useNavigate();
|
||||||
const PrevPath = getPrevPathRoute(location.pathname);
|
const PrevPath = getPrevPathRoute(location.pathname);
|
||||||
|
|
@ -33,9 +29,6 @@ const NavBar = ({ isOpen }: { isOpen: boolean }) => {
|
||||||
return (
|
return (
|
||||||
<div className="NavBar">
|
<div className="NavBar">
|
||||||
<Suspense fallback={<></>}>
|
<Suspense fallback={<></>}>
|
||||||
{/* <span className="navbar_link" onClick={handelNavigate}>
|
|
||||||
<MdOutlineArrowForwardIos /> {PageTitle}
|
|
||||||
</span> */}
|
|
||||||
<div className="header_search">
|
<div className="header_search">
|
||||||
<SearchFieldWithSelect
|
<SearchFieldWithSelect
|
||||||
options={translateArray}
|
options={translateArray}
|
||||||
|
|
|
||||||
|
|
@ -18,7 +18,6 @@ const App: React.FC = () => {
|
||||||
...filterState,
|
...filterState,
|
||||||
city_id,
|
city_id,
|
||||||
name,
|
name,
|
||||||
|
|
||||||
sort_by
|
sort_by
|
||||||
});
|
});
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -56,7 +56,6 @@ export const useColumns = () => {
|
||||||
ellipsis:true
|
ellipsis:true
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
|
|
||||||
title: t("columns.procedure"),
|
title: t("columns.procedure"),
|
||||||
key: "actions",
|
key: "actions",
|
||||||
align: "center",
|
align: "center",
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue
Block a user