File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -18,7 +18,7 @@ import {
1818 useK8sModel ,
1919 k8sCreate ,
2020 useActiveNamespace ,
21- YAMLEditor ,
21+ CodeEditor ,
2222} from "@openshift-console/dynamic-plugin-sdk" ;
2323import { useNavigate } from "react-router-dom-v5-compat" ;
2424import { 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 ,
You can’t perform that action at this time.
0 commit comments