mirror of
https://github.com/rowyio/rowy.git
synced 2025-12-28 16:06:41 +01:00
update markdown field type icon
This commit is contained in:
@@ -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";
|
||||
|
||||
@@ -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"
|
||||
/>
|
||||
);
|
||||
}
|
||||
|
||||
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user