Compare commits

...

1 Commits

Author SHA1 Message Date
Sinclair Chen
8d72a9104a Move "uploading image" message inside editor toolbar 2022-07-26 07:20:39 -07:00

View File

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