Add loading state and remove custom button position.

Based on PR feedback https://github.com/mailpoet/mailpoet/pull/5972#issuecomment-2516596159, The Email editor cannot work without a template. So, we currently don't need to set up workflow to support template not loading

MAILPOET-6331
This commit is contained in:
Oluwaseun Olorunsola
2024-12-04 13:15:14 +01:00
committed by Rostislav Wolný
parent abf03d6cc7
commit 98bc96b1b8

View File

@ -120,13 +120,12 @@ export function SelectTemplateModal( { onSelectCallback } ) {
) ) }
</div>
<Flex justify={ hasTemplates ? 'flex-end' : 'center' }>
<Flex justify="flex-end">
<FlexItem>
<Button
variant={
hasTemplates ? 'tertiary' : 'primary'
}
variant="tertiary"
onClick={ () => handleCloseWithoutSelection() }
isBusy={ ! hasTemplates }
>
{ __( 'Start from scratch', 'mailpoet' ) }
</Button>