mirror of
https://ghproxy.net/https://github.com/elementor/one-click-accessibility.git
synced 2026-07-23 12:37:39 +08:00
* [APP-1747] add parent selector * [APP-1747] add parent selector * [APP-1747] add parent selector * [APP-1747] add parent selector * [APP-1747] add parent selector * [APP-1747] add parent selector * [APP-1747] add parent selector * [APP-1747] add parent selector * [APP-1747] add parent selector * [APP-1747] add parent selector * [APP-1747] add parent selector * [APP-1747] add parent selector * [APP-1747] add parent selector * Add mixpanel events * Add mixpanel events * Add mixpanel events * Exclude adminbar from css rule * Exclude adminbar from css rule * Exclude adminbar from css rule * Exclude adminbar from css rule * Exclude adminbar from css rule * Exclude adminbar from css rule * Update modules/remediation/assets/js/actions/styles.js Co-authored-by: gitstream-cm[bot] <111687743+gitstream-cm[bot]@users.noreply.github.com> * Exclude adminbar from css rule * Exclude adminbar from css rule * Update modules/scanner/assets/js/hooks/use-color-contrast-form.js Co-authored-by: gitstream-cm[bot] <111687743+gitstream-cm[bot]@users.noreply.github.com> * Exclude adminbar from css rule * Exclude adminbar from css rule * fix quota * fix quota * fix quota * fix quota * fix quota * fix quota * fix quota * fix linter --------- Co-authored-by: gitstream-cm[bot] <111687743+gitstream-cm[bot]@users.noreply.github.com>
62 lines
1.6 KiB
JavaScript
62 lines
1.6 KiB
JavaScript
import Button from '@elementor/ui/Button';
|
||
import Typography from '@elementor/ui/Typography';
|
||
import { ROOT_ID } from '@ea11y-apps/scanner/constants';
|
||
import { useScannerWizardContext } from '@ea11y-apps/scanner/context/scanner-wizard-context';
|
||
import { ResolvedImage } from '@ea11y-apps/scanner/images';
|
||
import {
|
||
ResolvedButtonsBox,
|
||
StateContainer,
|
||
} from '@ea11y-apps/scanner/styles/app.styles';
|
||
import { closeWidget } from '@ea11y-apps/scanner/utils/close-widget';
|
||
import { __ } from '@wordpress/i18n';
|
||
|
||
export const ResolvedMessage = () => {
|
||
const { setShowCategories } = useScannerWizardContext();
|
||
|
||
const onClose = () => {
|
||
const widget = document.getElementById(ROOT_ID);
|
||
closeWidget(widget);
|
||
};
|
||
|
||
const showIssues = () => {
|
||
setShowCategories(true);
|
||
};
|
||
|
||
return (
|
||
<StateContainer sx={{ px: 4 }}>
|
||
<ResolvedImage />
|
||
|
||
<Typography variant="subtitle1" as="h3" align="center">
|
||
{__('You’re all set!', 'pojo-accessibility')}
|
||
</Typography>
|
||
|
||
<Typography variant="body2" align="center" color="text.secondary">
|
||
{__(
|
||
'This page is now issue‑free. View all scans to track your progress, or review the fixes you just made.',
|
||
'pojo-accessibility',
|
||
)}
|
||
</Typography>
|
||
|
||
<ResolvedButtonsBox>
|
||
<Button
|
||
size="small"
|
||
variant="outlined"
|
||
color="secondary"
|
||
onClick={showIssues}
|
||
>
|
||
{__('Review fixes', 'pojo-accessibility')}
|
||
</Button>
|
||
|
||
<Button
|
||
href={window?.ea11yScannerData?.dashboardUrl}
|
||
size="small"
|
||
variant="contained"
|
||
color="info"
|
||
onClick={onClose}
|
||
>
|
||
{__('View all scans', 'pojo-accessibility')}
|
||
</Button>
|
||
</ResolvedButtonsBox>
|
||
</StateContainer>
|
||
);
|
||
};
|