Skip to content

Commit 3e26a21

Browse files
YAML Editor props
1 parent 66edc78 commit 3e26a21

1 file changed

Lines changed: 6 additions & 6 deletions

File tree

src/views/CronTabForm/CronTabForm.tsx

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ import {
1818
useK8sModel,
1919
k8sCreate,
2020
useActiveNamespace,
21-
YAMLEditor,
21+
CodeEditor,
2222
} from "@openshift-console/dynamic-plugin-sdk";
2323
import { useNavigate } from "react-router-dom-v5-compat";
2424
import { useCronTabTranslation } from "@crontab-utils/hooks/useCronTabTranslation";
@@ -136,7 +136,7 @@ export const CronTabForm: React.FC = () => {
136136
};
137137

138138
return (
139-
<PageSection>
139+
<PageSection isFilled={true} height="sizeToFit">
140140
<Title headingLevel="h1" data-test="page-heading">
141141
{t("Create CronTab")}
142142
</Title>
@@ -146,12 +146,12 @@ export const CronTabForm: React.FC = () => {
146146

147147
{showYaml ? (
148148
<>
149-
<YAMLEditor
149+
<CodeEditor
150150
value={yamlContent}
151-
language="yaml"
152-
onChange={(_e, val) => setYamlContent(val as string)}
153-
minHeight="0"
151+
onChange={(val) => setYamlContent(val)}
152+
// @ts-expect-error TODO: fix this
154153
height="500px"
154+
language="yaml"
155155
options={{
156156
wordWrap: "on",
157157
formatOnPaste: true,

0 commit comments

Comments
 (0)