Move "uploading image" message inside editor toolbar

This commit is contained in:
Sinclair Chen 2022-07-26 07:20:39 -07:00
parent ad46a60c4f
commit 8d72a9104a

View File

@ -181,13 +181,17 @@ export function TextEditor(props: {
<span className="sr-only">Embed an iframe</span>
</button>
</div>
{upload.isLoading && (
<span className="text-xs">Uploading image...</span>
)}
{upload.isError && (
<span className="text-error text-xs">
Error uploading image :(
</span>
)}
</div>
</div>
</div>
{upload.isLoading && <span className="text-xs">Uploading image...</span>}
{upload.isError && (
<span className="text-error text-xs">Error uploading image :(</span>
)}
</>
)
}