All Downloads are FREE. Search and download functionalities are using the official Maven repository.

META-INF.resources.js.components.layout_reports.NoIssuesLoaded.js Maven / Gradle / Ivy

The newest version!
/**
 * SPDX-FileCopyrightText: (c) 2000 Liferay, Inc. https://liferay.com
 * SPDX-License-Identifier: LGPL-2.1-or-later OR LicenseRef-Liferay-DXP-EULA-2.0.0-2023-06
 */

import ClayButton from '@clayui/button';
import React, {useContext} from 'react';

import {
	StoreDispatchContext,
	StoreStateContext,
} from '../../context/StoreContext';
import loadIssues from '../../utils/loadIssues';

export default function NoIssuesLoaded() {
	const {data, languageId} = useContext(StoreStateContext);
	const dispatch = useContext(StoreDispatchContext);

	const {imagesPath} = data;

	const defaultIllustration = `${imagesPath}/issues_default.svg`;

	const onLaunchButtonClick = () => {
		const url = data.pageURLs.find(
			(pageURL) =>
				pageURL.languageId === (languageId || data.defaultLanguageId)
		);

		loadIssues({
			dispatch,
			languageId,
			url,
		});
	};

	return (
		
{Liferay.Language.get(

{Liferay.Language.get( "launch-a-page-audit-to-check-issues-that-impact-on-your-page's-accesibility-and-seo" )}

{Liferay.Language.get('launch')}
); }




© 2015 - 2024 Weber Informatics LLC | Privacy Policy