Read-only editor

This commit is contained in:
Gregory Schier
2023-03-08 16:53:13 -08:00
parent 936787d327
commit 4246260ce6
5 changed files with 79 additions and 77 deletions
+1
View File
@@ -130,6 +130,7 @@ export function ResponsePane({ requestId, className }: Props) {
</div>
) : response?.body ? (
<Editor
readOnly
className="bg-gray-50 dark:!bg-gray-100"
valueKey={`${contentType}:${response.updatedAt}`}
defaultValue={response?.body}