mirror of
https://ghproxy.net/https://github.com/elementor/one-click-accessibility.git
synced 2026-07-22 12:27:13 +08:00
* [APP-934] add submit logic * [APP-934] add submit logic * [APP-934] add submit logic * [APP-934] add submit logic * Added replace remediation action * Add submit logic * Add submit alt text logic, generate AI alt text * Add AI generate request, add convert from SVG to png base64, added manual fix block * Add AI generate request, add convert from SVG to png base64, added manual fix block * Add texts, add remediation submit, fix logic to store remediation * Add texts, add remediation submit, fix logic to store remediation * Add texts, add remediation submit, fix logic to store remediation * Add texts, add remediation submit, fix logic to store remediation * Add texts, add remediation submit, fix logic to store remediation * Add texts, add remediation submit, fix logic to store remediation --------- Co-authored-by: Raz Ohad <admin@bainternet.info>
40 lines
1.1 KiB
JavaScript
40 lines
1.1 KiB
JavaScript
import Box from '@elementor/ui/Box';
|
|
import Typography from '@elementor/ui/Typography';
|
|
import PropTypes from 'prop-types';
|
|
import { ResolvedImage } from '@ea11y-apps/scanner/images';
|
|
import { StateContainer } from '@ea11y-apps/scanner/styles/app.styles';
|
|
import { __ } from '@wordpress/i18n';
|
|
|
|
export const ResolvedMessage = ({ isMain }) => (
|
|
<StateContainer>
|
|
<ResolvedImage />
|
|
<Box sx={{ maxWidth: '250px' }}>
|
|
{isMain ? (
|
|
<>
|
|
<Typography variant="body1" align="center">
|
|
{__('All done!', 'pojo-accessibility')}
|
|
</Typography>
|
|
<Typography variant="body1" align="center">
|
|
{__('There are no issues to resolve.', 'pojo-accessibility')}
|
|
</Typography>
|
|
</>
|
|
) : (
|
|
<>
|
|
<Typography variant="body1" align="center">
|
|
{__('All clear!', 'pojo-accessibility')}
|
|
</Typography>
|
|
<Typography variant="body1" align="center">
|
|
{__(
|
|
'Your scan is complete and there are no active issues to resolve',
|
|
'pojo-accessibility',
|
|
)}
|
|
</Typography>
|
|
</>
|
|
)}
|
|
</Box>
|
|
</StateContainer>
|
|
);
|
|
|
|
ResolvedMessage.propTypes = {
|
|
isMain: PropTypes.bool,
|
|
};
|