Skip to content

Commit

Permalink
feat(Panels reset modal): improve design
Browse files Browse the repository at this point in the history
  • Loading branch information
aliaghdam committed Oct 27, 2024
1 parent 0439c8f commit 290a83e
Showing 1 changed file with 20 additions and 9 deletions.
29 changes: 20 additions & 9 deletions packages/wordpress/js/admin/components/update/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -181,22 +181,29 @@ export const Update = ({
{resetModalOpen && (
<Modal
className="blockera-settings-reset-modal"
title={__('Reset Settings', 'blockera')}
headerTitle={__('Reset Settings', 'blockera')}
size="small"
onRequestClose={() => setResetModalOpen(false)}
>
<p>
{__(
'Resetting will restore all configured settings on the current tab to their default values.',
'blockera'
)}
<strong>
{__(
'To restore all plugin settings, choose Reset All.',
'blockera'
)}
</strong>
</p>
<Flex direction={'row'} justifyContent={'space-between'}>

<p>
{__(
'To restore all plugin settings, choose Reset All.',
'blockera'
)}
</p>

<Flex
direction={'row'}
justifyContent={'space-between'}
style={{ marginTop: '40px' }}
>
<Flex
direction={'row'}
justifyContent={'space-between'}
Expand Down Expand Up @@ -233,8 +240,12 @@ export const Update = ({
</Button>
</Flex>
</Flex>

{'error' === status.name && (
<div className="message update-failed">
<div
className="message update-failed"
style={{ marginTop: '40px' }}
>
{status.label}
</div>
)}
Expand Down

0 comments on commit 290a83e

Please sign in to comment.