fixes
This commit is contained in:
parent
00dfd6c88c
commit
2e1effd7ec
|
|
@ -7,11 +7,10 @@ import { Spin } from "antd";
|
|||
import { canAddTags } from "../../utils/hasAbilityFn";
|
||||
import useSetPageTitle from "../../Hooks/useSetPageTitle";
|
||||
import { useDeleteTag } from "../../api/tags";
|
||||
import DeleteModels from "../../Layout/Dashboard/DeleteModels";
|
||||
const Table = lazy(() => import("./Table"));
|
||||
const AddModalForm = lazy(() => import("./Model/AddModel"));
|
||||
const EditModalForm = lazy(() => import("./Model/EditModel"));
|
||||
const DeleteModalForm = lazy(() => import("./Model/Delete"));
|
||||
const DeleteModalForm = lazy(() => import("../../Layout/Dashboard/DeleteModels"));
|
||||
const SearchField = lazy(
|
||||
() => import("../../Components/DataTable/SearchField"),
|
||||
);
|
||||
|
|
@ -46,7 +45,7 @@ const TableHeader = () => {
|
|||
</header>
|
||||
|
||||
<Table />
|
||||
<DeleteModels
|
||||
<DeleteModalForm
|
||||
deleteMutation={deleteMutation}
|
||||
ModelEnum={ModalEnum?.TAGS_DELETE}
|
||||
/>
|
||||
|
|
|
|||
|
|
@ -11,7 +11,7 @@ import { useDeleteUnit } from "../../api/unit";
|
|||
const Table = lazy(() => import('./Table'));
|
||||
const AddModalForm = lazy(() => import('./Model/AddModel'));
|
||||
const EditModalForm = lazy(() => import('./Model/EditModel'));
|
||||
const DeleteModels = lazy(() => import('../../Layout/Dashboard/DeleteModels'));
|
||||
const DeleteModalForm = lazy(() => import('../../Layout/Dashboard/DeleteModels'));
|
||||
|
||||
const TableHeader = () => {
|
||||
const [t] = useTranslation();
|
||||
|
|
@ -38,7 +38,7 @@ const TableHeader = () => {
|
|||
<Table />
|
||||
<AddModalForm />
|
||||
<EditModalForm />
|
||||
<DeleteModels
|
||||
<DeleteModalForm
|
||||
deleteMutation={deleteMutation}
|
||||
ModelEnum={ModalEnum?.UNIT_DELETE}
|
||||
/>
|
||||
|
|
|
|||
|
|
@ -11,7 +11,7 @@ import { useDeleteLesson } from "../../api/lesson";
|
|||
const Table = lazy(() => import('./Table'));
|
||||
const AddModalForm = lazy(() => import('./Model/AddModel'));
|
||||
const EditModalForm = lazy(() => import('./Model/EditModel'));
|
||||
const DeleteModels = lazy(() => import('../../Layout/Dashboard/DeleteModels'));
|
||||
const DeleteModelsForm = lazy(() => import('../../Layout/Dashboard/DeleteModels'));
|
||||
|
||||
const TableHeader = () => {
|
||||
const [t] = useTranslation();
|
||||
|
|
@ -45,7 +45,7 @@ const TableHeader = () => {
|
|||
<Table />
|
||||
<AddModalForm />
|
||||
<EditModalForm />
|
||||
<DeleteModels
|
||||
<DeleteModelsForm
|
||||
deleteMutation={deleteMutation}
|
||||
ModelEnum={ModalEnum?.LESSON_DELETE}
|
||||
/>
|
||||
|
|
|
|||
|
|
@ -1,7 +1,6 @@
|
|||
import { useTranslation } from "react-i18next";
|
||||
import { lazy, Suspense } from "react";
|
||||
import { Spin } from "antd";
|
||||
import DeleteModel from "./Model/Delete";
|
||||
import { useParams } from "react-router-dom";
|
||||
import { ParamsEnum } from "../../enums/params";
|
||||
import { useGetAllUnit } from "../../api/unit";
|
||||
|
|
|
|||
|
|
@ -2,15 +2,14 @@ import { ModalEnum } from "../../../enums/Model";
|
|||
import useModalHandler from "../../../utils/useModalHandler";
|
||||
import { FaPlus } from "react-icons/fa";
|
||||
import { useTranslation } from "react-i18next";
|
||||
import TablePage from "./TablePage";
|
||||
|
||||
import AddSubjectModalForm from "../Model/AddModel";
|
||||
import EditSubjectModalForm from "../Model/EditModel";
|
||||
import DeleteSubjectModalForm from "../Model/Delete";
|
||||
import useSetPageTitle from "../../../Hooks/useSetPageTitle";
|
||||
import { canAddSubject } from "../../../utils/hasAbilityFn";
|
||||
import DeleteModels from "../../../Layout/Dashboard/DeleteModels";
|
||||
import { useDeleteSubject } from "../../../api/subject";
|
||||
import { lazy } from "react";
|
||||
const Table = lazy(() => import("./TablePage"));
|
||||
const AddModalForm = lazy(() => import("../Model/AddModel"));
|
||||
const EditModalForm = lazy(() => import("../Model/EditModel"));
|
||||
const DeleteModalForm = lazy(() => import("../../../Layout/Dashboard/DeleteModels"));
|
||||
|
||||
const TableWithHeader = () => {
|
||||
const { handel_open_model } = useModalHandler();
|
||||
|
|
@ -32,11 +31,11 @@ const TableWithHeader = () => {
|
|||
</button>
|
||||
)}
|
||||
</header>
|
||||
<TablePage />
|
||||
<Table />
|
||||
|
||||
<AddSubjectModalForm />
|
||||
<EditSubjectModalForm />
|
||||
<DeleteModels
|
||||
<AddModalForm />
|
||||
<EditModalForm />
|
||||
<DeleteModalForm
|
||||
deleteMutation={deleteMutation}
|
||||
ModelEnum={ModalEnum?.SUBJECT_DELETE}
|
||||
/>
|
||||
|
|
|
|||
|
|
@ -1,7 +1,7 @@
|
|||
export const BaseURL = "http://192.168.1.6:8000/api/";
|
||||
// export const BaseURL = "http://192.168.1.6:8000/api/";
|
||||
// export const BaseURL = "http://127.0.0.1:8000/api/";
|
||||
|
||||
// export const BaseURL = "https://exercise-automation.point-dev.net/api/";
|
||||
export const BaseURL = "https://exercise-automation.point-dev.net/api/";
|
||||
|
||||
// export const ImageBaseURL = "http://192.168.1.9:8000/";
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user