fix: fix status page markdown editor preview cannot render correct problem
This commit is contained in:
parent
d31d20364e
commit
eccb322ead
@ -75,7 +75,7 @@ export const MonitorStatusPageEditForm: React.FC<MonitorStatusPageEditFormProps>
|
|||||||
</Form.Item>
|
</Form.Item>
|
||||||
|
|
||||||
<Form.Item label={t('Description')} name="description">
|
<Form.Item label={t('Description')} name="description">
|
||||||
<MarkdownEditor value={''} />
|
<MarkdownEditorFormItem />
|
||||||
</Form.Item>
|
</Form.Item>
|
||||||
|
|
||||||
<Form.Item
|
<Form.Item
|
||||||
@ -179,3 +179,11 @@ export const MonitorStatusPageEditForm: React.FC<MonitorStatusPageEditFormProps>
|
|||||||
);
|
);
|
||||||
});
|
});
|
||||||
MonitorStatusPageEditForm.displayName = 'MonitorStatusPageEditForm';
|
MonitorStatusPageEditForm.displayName = 'MonitorStatusPageEditForm';
|
||||||
|
|
||||||
|
export const MarkdownEditorFormItem: React.FC<{
|
||||||
|
value?: string;
|
||||||
|
onChange?: (val: string) => void;
|
||||||
|
}> = React.memo((props) => {
|
||||||
|
return <MarkdownEditor value={props.value ?? ''} onChange={props.onChange} />;
|
||||||
|
});
|
||||||
|
MarkdownEditorFormItem.displayName = 'MarkdownEditorFormItem';
|
||||||
|
Loading…
Reference in New Issue
Block a user