/
githubmirror
/
wp-calypso
Обзор
Документация
Войти
/
githubmirror
/
wp-calypso
Код
Задачи
Вики
Пакеты
0
Релизы
0
Аналитика
Безопасность
trunk
client/document/404.jsx
39 строк
1 KB
Dean Sas
Clean-up wording in various error messages (#103372)
19 май 2025, 13:52
Не верифицирован
19 май 2025, 13:52
615504a
Код
Авторство
О чём код?
import config from '@automattic/calypso-config'; import clsx from 'clsx'; import EmptyContent from 'calypso/components/empty-content'; import Head from 'calypso/components/head'; import { chunkCssLinks } from './utils'; function NotFound( { entrypoint } ) { const theme = config( 'theme' ); return ( <html lang="en"> <Head>{ chunkCssLinks( entrypoint ) }</Head> <body className={ clsx( { [ 'theme-' + theme ]: theme, } ) } > { /* eslint-disable wpcalypso/jsx-classname-namespace*/ } <div id="wpcom" className="wpcom-site"> <div className="wp has-no-sidebar"> <div className="layout__content" id="content"> <div className="layout__primary" id="primary"> <EmptyContent title="Page not found." line="Sorry, the page you were looking for doesn't exist or has been moved." action="Return Home" actionURL="/" /> </div> </div> </div> </div> { /* eslint-enable wpcalypso/jsx-classname-namespace*/ } </body> </html> ); } export default NotFound;