add SideDrawerEditor to fields

This commit is contained in:
Sidney Alcantara
2020-11-30 16:44:09 +11:00
parent b416019e17
commit 8dd18cb8e8
2 changed files with 5 additions and 5 deletions

View File

@@ -3,8 +3,8 @@ import { IFieldConfig, FieldType } from "components/fields/types";
import withCustomCell from "components/Table/withCustomCell";
import IdIcon from "assets/icons/Id";
import BasicCell from "../_BasicCell/BasicCellNull";
import NullEditor from "components/Table/editors/NullEditor";
import BasicCell from "../_BasicCell/BasicCellValue";
import SideDrawerEditor from "components/Table/editors/SideDrawerEditor";
const TableCell = lazy(
() => import("./TableCell" /* webpackChunkName: "TableCell-Id" */)
@@ -21,7 +21,7 @@ export const config: IFieldConfig = {
icon: <IdIcon />,
description: "Displays the rows document ID. Cannot be sorted.",
TableCell: withCustomCell(TableCell, BasicCell),
TableEditor: NullEditor,
TableEditor: SideDrawerEditor,
SideDrawerField,
};
export default config;

View File

@@ -4,7 +4,7 @@ import withCustomCell from "components/Table/withCustomCell";
import UserIcon from "@material-ui/icons/Person";
import BasicCell from "../_BasicCell/BasicCellNull";
import NullEditor from "components/Table/editors/NullEditor";
import SideDrawerEditor from "components/Table/editors/SideDrawerEditor";
const TableCell = lazy(
() => import("./TableCell" /* webpackChunkName: "TableCell-User" */)
@@ -23,7 +23,7 @@ export const config: IFieldConfig = {
icon: <UserIcon />,
description: "Displays the _ft_updatedBy field for editing history.",
TableCell: withCustomCell(TableCell, BasicCell),
TableEditor: NullEditor,
TableEditor: SideDrawerEditor,
SideDrawerField,
};
export default config;