diff --git a/src/controls/AntdImageControl.tsx b/src/controls/AntdImageControl.tsx index 1a2c531..33c0591 100644 --- a/src/controls/AntdImageControl.tsx +++ b/src/controls/AntdImageControl.tsx @@ -5,7 +5,7 @@ import { withStoreToControlProps } from '../util/ContextToProps'; export const AntdImageControl = (props: any): JSX.Element => { const { uiOptions, data } = props; - return ; + return ; }; export const antdImageControlTester: RankedTester = rankWith(3, uiTypeIs('aldkg:Image')); diff --git a/src/layouts/AntdFormLayout.tsx b/src/layouts/AntdFormLayout.tsx index 0df446c..eebfb0b 100644 --- a/src/layouts/AntdFormLayout.tsx +++ b/src/layouts/AntdFormLayout.tsx @@ -82,7 +82,9 @@ export const AntdFormLayout: React.FC = ({ return ( {({ width, height }: any) => ( - onEdit()}> + !readOnly && onEdit()}> {title && {title}} {readOnly ? null : }