mirror of
https://ghproxy.net/https://github.com/elementor/one-click-accessibility.git
synced 2026-07-22 12:27:13 +08:00
* [APP-1923] change remediation management (#411) * [APP-1988] Add tabs * [APP-1988][APP-1989] add tabs, remove menu item * [APP-1988][APP-1989] add tabs, remove menu item * [APP-1992] add empty state and tab navigation * [APP-1993][APP-1994] Change view for manage AI fixes, change delete confirmation modal * [APP-1996] add view for alt text fixes * [APP-1996] add edit for alt text fixes * [APP-1996] add edit for alt text fixes * [APP-1996] add edit for alt text fixes * [APP-1996] add edit for alt text fixes * [APP-1996] add edit for alt text fixes * [APP-1995] Color contrast form * [APP-2001] add global remediation logic (#415) * [APP-2001] add global remediation logic * [APP-2001] add global remediation logic * [APP-2001] add global remediation logic * [APP-2001] add global remediation logic * [APP-2001] add global remediation logic * [APP-2001] add global remediation logic * [APP-2001] add global remediation logic * [APP-2001] add global remediation logic * [APP-2001] add global remediation logic * [APP-2001] add global remediation logic * [APP-2001] add global remediation logic * [APP-2001] add global remediation logic * [APP-2001] add global remediation logic * [APP-2001] add global remediation logic * [APP-2001] add global remediation logic * [APP-2001] add global remediation logic * [APP-2003] add disable across scans (#418) * [APP-2003] add disable across scans * [APP-2003] add disable across scans * [APP-2003] add disable across scans * [APP-2003] add disable across scans * [APP-2003] add disable across scans * [APP-2003] add disable across scans * [APP-2003] add disable across scans * [APP-2003] add disable across scans * [APP-2003] add disable across scans * [APP-2003] add disable across scans * [APP-2003] add disable across scans * [APP-2003] add disable across scans * [APP-2003] add disable across scans * [APP-2003] add disable across scans * [APP-2003] add disable across scans * [APP-2003] add disable across scans * [APP-2003] add disable across scans * [APP-2003] add disable across scans * add logs * add logs * add logs * remove logs * remove logs * remove logs * remove logs * remove logs * remove logs * remove logs * remove logs * remove logs * remove logs * change to theme value * change to theme value * change to theme value * change to theme value * add edit mode * add edit mode * add edit mode
68 lines
1.7 KiB
JavaScript
68 lines
1.7 KiB
JavaScript
import AlertOctagonFilledIcon from '@elementor/icons/AlertOctagonFilledIcon';
|
||
import Typography from '@elementor/ui/Typography';
|
||
import PropTypes from 'prop-types';
|
||
import ConfirmDialog from '@ea11y-apps/global/components/confirm-dialog';
|
||
import { __, sprintf } from '@wordpress/i18n';
|
||
|
||
const DeletePageRemediationModal = ({
|
||
open,
|
||
hideConfirmation,
|
||
onDelete,
|
||
count = null,
|
||
isMain = false,
|
||
}) => {
|
||
return (
|
||
<ConfirmDialog
|
||
open={open}
|
||
onClose={hideConfirmation}
|
||
onCancel={hideConfirmation}
|
||
title={
|
||
isMain
|
||
? sprintf(
|
||
// Translators: %s - fixes count
|
||
__('Remove %s fixes?', 'pojo-accessibility'),
|
||
count,
|
||
)
|
||
: __('Remove this fix?', 'pojo-accessibility')
|
||
}
|
||
approveText={
|
||
isMain
|
||
? __('Remove fixes', 'pojo-accessibility')
|
||
: __('Remove fix', 'pojo-accessibility')
|
||
}
|
||
cancelText={__('Not now', 'pojo-accessibility')}
|
||
logo={<AlertOctagonFilledIcon color="error" sx={{ mt: '6px' }} />}
|
||
onApprove={onDelete}
|
||
showCloseButton
|
||
disablePortal
|
||
PaperProps={{
|
||
sx: {
|
||
maxWidth: '440px',
|
||
width: '100%',
|
||
},
|
||
}}
|
||
>
|
||
<Typography variant="body2">
|
||
{isMain
|
||
? __(
|
||
'This removes the fixes and marks the accessibility issues as unresolve. This can’t be undone.',
|
||
'pojo-accessibility',
|
||
)
|
||
: __(
|
||
'This removes the fix and marks the accessibility issue as unresolve. This can’t be undone.',
|
||
'pojo-accessibility',
|
||
)}
|
||
</Typography>
|
||
</ConfirmDialog>
|
||
);
|
||
};
|
||
|
||
DeletePageRemediationModal.propTypes = {
|
||
open: PropTypes.bool.isRequired,
|
||
hideConfirmation: PropTypes.func.isRequired,
|
||
onDelete: PropTypes.func.isRequired,
|
||
count: PropTypes.number,
|
||
isMain: PropTypes.bool,
|
||
};
|
||
|
||
export default DeletePageRemediationModal;
|