fix: ai button not working on creating a page block (#1013)

* fix: ai button not working on creating page block

* fix: build error
This commit is contained in:
Aaryan Khandelwal 2023-05-05 15:45:10 +05:30 committed by GitHub
parent fd96c54b43
commit b34cf0c471
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
4 changed files with 97 additions and 91 deletions

View file

@ -121,7 +121,7 @@ export const GptAssistantModal: React.FC<Props> = ({
return (
<div
className={`absolute ${inset} z-20 w-full space-y-4 rounded-[10px] border border-brand-base bg-brand-surface-2 p-4 shadow ${
className={`absolute ${inset} z-20 w-full space-y-4 rounded-[10px] border border-brand-base bg-brand-base p-4 shadow ${
isOpen ? "block" : "hidden"
}`}
>
@ -138,7 +138,7 @@ export const GptAssistantModal: React.FC<Props> = ({
</div>
)}
{response !== "" && (
<div className="text-sm page-block-section">
<div className="page-block-section text-sm">
Response:
<RemirrorRichTextEditor
value={`<p>${response}</p>`}