add code helper to action script

This commit is contained in:
shamsmosowi
2021-10-28 23:11:07 +11:00
parent 265dd60f49
commit ab9b3e8727
2 changed files with 10 additions and 1 deletions

View File

@@ -9,6 +9,9 @@ import {
import MultiSelect from "@rowy/multiselect";
import FieldSkeleton from "components/SideDrawer/Form/FieldSkeleton";
import { useProjectContext } from "contexts/ProjectContext";
import { InputLabel } from "@mui/material";
import CodeEditorHelper from "@src/components/CodeEditor/CodeEditorHelper";
import { WIKI_LINKS } from "constants/externalLinks";
const CodeEditor = lazy(
() => import("components/CodeEditor" /* webpackChunkName: "CodeEditor" */)
@@ -87,7 +90,12 @@ const Settings = ({ config, handleChange }) => {
/>
) : (
<>
<Typography variant="overline">action script</Typography>
<InputLabel>Action script</InputLabel>
<CodeEditorHelper
docLink={WIKI_LINKS.fieldTypesAction}
additionalVariables={[]}
/>
<Suspense fallback={<FieldSkeleton height={300} />}>
<CodeEditor
minHeight={300}

View File

@@ -37,6 +37,7 @@ const WIKI_PATHS = {
fieldTypesSupportedFields: "/field-types/supported-fields",
fieldTypesDerivative: "/field-types/derivative",
fieldTypesConnectTable: "/field-types/connect-table",
fieldTypesAction: "/field-types/action",
fieldTypesAdd: "/field-types/add",
rowyRun: "/rowy-run",