update markdown field type icon

This commit is contained in:
Sidney Alcantara
2022-06-07 10:14:32 +10:00
parent 3e8ae8b67a
commit c50437d518
3 changed files with 8 additions and 3 deletions

View File

@@ -82,6 +82,9 @@ export { FileLinkOutline as Reference };
import { CarBrakeAlert } from "mdi-material-ui";
export { CarBrakeAlert as Critical };
import { LanguageMarkdownOutline } from "mdi-material-ui";
export { LanguageMarkdownOutline as Markdown };
export * from "./AddRow";
export * from "./Clear";
export * from "./ConnectTable";

View File

@@ -23,6 +23,7 @@ const languages = [
"go",
"plaintext",
];
export default function Settings({ config, onChange }: ISettingsProps) {
return (
<MultiSelect
@@ -34,6 +35,7 @@ export default function Settings({ config, onChange }: ISettingsProps) {
onChange("language")(value);
}}
label="Language"
labelPlural="languages"
/>
);
}

View File

@@ -2,7 +2,7 @@ import { lazy } from "react";
import { IFieldConfig, FieldType } from "@src/components/fields/types";
import withBasicCell from "@src/components/fields/_withTableCell/withBasicCell";
import CodeIcon from "@mui/icons-material/Code";
import { Markdown as MarkdownIcon } from "@src/assets/icons";
import BasicCell from "./BasicCell";
import withSideDrawerEditor from "@src/components/Table/editors/withSideDrawerEditor";
@@ -24,8 +24,8 @@ export const config: IFieldConfig = {
dataType: "string",
initialValue: "",
initializable: true,
icon: <CodeIcon />,
description: "Markdown Editor",
icon: <MarkdownIcon />,
description: "Markdown editor with preview",
TableCell: withBasicCell(BasicCell),
TableEditor: withSideDrawerEditor(BasicCell),
SideDrawerField,