Add "Start from scratch" to the template selector
MAILPOET-6333
This commit is contained in:
committed by
Rostislav Wolný
parent
f952ee0d1f
commit
46c8ae94bc
@ -6,7 +6,11 @@ import {
|
|||||||
Modal,
|
Modal,
|
||||||
__experimentalHStack as HStack, // eslint-disable-line
|
__experimentalHStack as HStack, // eslint-disable-line
|
||||||
Button,
|
Button,
|
||||||
|
Flex,
|
||||||
|
FlexItem,
|
||||||
} from '@wordpress/components';
|
} from '@wordpress/components';
|
||||||
|
import { __ } from '@wordpress/i18n';
|
||||||
|
|
||||||
import { Async } from './async';
|
import { Async } from './async';
|
||||||
import { usePreviewTemplates } from '../../hooks';
|
import { usePreviewTemplates } from '../../hooks';
|
||||||
import { storeName, TemplatePreview } from '../../store';
|
import { storeName, TemplatePreview } from '../../store';
|
||||||
@ -113,6 +117,17 @@ export function SelectTemplateModal( { onSelectCallback } ) {
|
|||||||
</div>
|
</div>
|
||||||
) ) }
|
) ) }
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
|
<Flex justify="flex-end">
|
||||||
|
<FlexItem>
|
||||||
|
<Button
|
||||||
|
variant="tertiary"
|
||||||
|
onClick={ () => handleCloseWithoutSelection() }
|
||||||
|
>
|
||||||
|
{ __( 'Start from scratch', 'mailpoet' ) }
|
||||||
|
</Button>
|
||||||
|
</FlexItem>
|
||||||
|
</Flex>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</Modal>
|
</Modal>
|
||||||
|
Reference in New Issue
Block a user