one-click-accessibility/modules/scanner/assets/js/components/resolved-message/index.js
VasylD fa2fd11e29
[APP-934] add submit logic (#259)
* [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>
2025-05-06 00:00:46 +03:00

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,
};