mirror of
https://github.com/rowyio/rowy.git
synced 2026-07-12 21:39:28 +02:00
add SideDrawerEditor to fields
This commit is contained in:
@@ -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 row’s document ID. Cannot be sorted.",
|
||||
TableCell: withCustomCell(TableCell, BasicCell),
|
||||
TableEditor: NullEditor,
|
||||
TableEditor: SideDrawerEditor,
|
||||
SideDrawerField,
|
||||
};
|
||||
export default config;
|
||||
|
||||
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user