mirror of
https://ghproxy.net/https://github.com/elementor/one-click-accessibility.git
synced 2026-07-21 12:16:59 +08:00
19 lines
528 B
JavaScript
19 lines
528 B
JavaScript
import ReloadIcon from '@elementor/icons/ReloadIcon';
|
|
import Button from '@elementor/ui/Button';
|
|
import { useManageActions } from '@ea11y-apps/scanner/hooks/use-manage-actions';
|
|
import { __ } from '@wordpress/i18n';
|
|
|
|
export const EnableButton = () => {
|
|
const { updateAllRemediationForPage } = useManageActions();
|
|
return (
|
|
<Button
|
|
startIcon={<ReloadIcon />}
|
|
size="small"
|
|
color="info"
|
|
variant="text"
|
|
onClick={updateAllRemediationForPage(true)}
|
|
>
|
|
{__('Enable all', 'pojo-accessibility')}
|
|
</Button>
|
|
);
|
|
};
|