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:
parent
fd96c54b43
commit
b34cf0c471
4 changed files with 97 additions and 91 deletions
|
|
@ -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>`}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue