fix: 🐛 replace old Model type by DefaultModel
This commit is contained in:
parent
f55972ea96
commit
26697c0b58
4 changed files with 7 additions and 7 deletions
|
|
@ -81,7 +81,7 @@ export default function EnumSelect({
|
|||
|
||||
/**
|
||||
* Get the identification field of specific option.
|
||||
* @param option Model
|
||||
* @param value number
|
||||
* @return string
|
||||
*/
|
||||
const getEnumLabel = (value: number): string => {
|
||||
|
|
|
|||
|
|
@ -18,7 +18,7 @@ import {
|
|||
TableRow,
|
||||
} from "@/components/ui/table";
|
||||
// * Other
|
||||
import { Model, Resource, Views } from "@/back/types/global";
|
||||
import { DefaultModel, Resource, Views } from "@/back/types/global";
|
||||
import ModelActions from "@/back/Components/ModelActions";
|
||||
import DataTableFilterButton from "@/back/Components/Table/DataTableFilterButton";
|
||||
import PaginationWrapper from "@/back/Components/Pagination/PaginationWrapper";
|
||||
|
|
@ -102,7 +102,7 @@ export default function DataTable<TData, TValue>({
|
|||
<ModelActions
|
||||
actions={actions}
|
||||
modelRoute={modelRoute}
|
||||
model={row.original as Model}
|
||||
model={row.original as DefaultModel}
|
||||
inDialog
|
||||
/>
|
||||
</TableCell>
|
||||
|
|
|
|||
|
|
@ -11,16 +11,16 @@ import {
|
|||
} from "@/components/ui/table";
|
||||
// * Other
|
||||
import useTrans from "@/hooks/use-translations";
|
||||
import { Model } from "@/back/types/global";
|
||||
import { DefaultModel } from "@/back/types/global";
|
||||
|
||||
interface DetailsTableProps {
|
||||
columns: {
|
||||
accessorKey: keyof Model;
|
||||
accessorKey: keyof DefaultModel;
|
||||
header: string;
|
||||
// eslint-disable-next-line no-unused-vars
|
||||
cell?: (params: { value: unknown }) => ReactNode;
|
||||
}[];
|
||||
model: Model;
|
||||
model: DefaultModel;
|
||||
forceRenderValue?: boolean;
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -1,4 +1,4 @@
|
|||
// * Packages
|
||||
// * Other
|
||||
import useTrans from "@/hooks/use-translations";
|
||||
|
||||
export default function WordCounter({ value }: { value: string }) {
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue