diff --git a/gui/rpk-gui/src/lib/crud/components/widgets/crud-text-widget.tsx b/gui/rpk-gui/src/lib/crud/components/widgets/crud-text-widget.tsx index bc9e85d..fe085f9 100644 --- a/gui/rpk-gui/src/lib/crud/components/widgets/crud-text-widget.tsx +++ b/gui/rpk-gui/src/lib/crud/components/widgets/crud-text-widget.tsx @@ -1,4 +1,5 @@ import React from "react"; +import { getDefaultRegistry } from "@rjsf/core"; import { FormContextType, getTemplate, RJSFSchema, WidgetProps } from "@rjsf/utils"; import Typography from "@mui/material/Typography"; @@ -11,15 +12,14 @@ export default function CrudTextWidget ) { const { schema } = props; - if (schema.hasOwnProperty("foreign_key")) { + if (schema.hasOwnProperty("foreignKey")) { return ; } else if (schema.hasOwnProperty("const")) { return {schema.const as string}; } else if (schema.props?.hasOwnProperty("richtext")) { return ; } else { - const { options, registry } = props; - const BaseInputTemplate = getTemplate<'BaseInputTemplate', T, S, F>('BaseInputTemplate', registry, options); - return ; + const { widgets: { TextWidget } } = getDefaultRegistry(); + return ; } }