1
0
mirror of https://github.com/Sonarr/Sonarr.git synced 2026-04-18 21:35:27 -04:00

Translate Frontend Components, Episode and Helpers

This commit is contained in:
Stevie Robinson
2023-08-13 23:04:18 +02:00
committed by GitHub
parent 074aa6f445
commit e777b70184
51 changed files with 482 additions and 177 deletions
+5 -6
View File
@@ -1,9 +1,12 @@
import PropTypes from 'prop-types';
import React from 'react';
import PageContent from 'Components/Page/PageContent';
import translate from 'Utilities/String/translate';
import styles from './NotFound.css';
function NotFound({ message }) {
function NotFound(props) {
const { message = translate('DefaultNotFoundMessage') } = props;
return (
<PageContent title="MIA">
<div className={styles.container}>
@@ -21,11 +24,7 @@ function NotFound({ message }) {
}
NotFound.propTypes = {
message: PropTypes.string.isRequired
};
NotFound.defaultProps = {
message: 'You must be lost, nothing to see here.'
message: PropTypes.string
};
export default NotFound;