fix(lang): fix overwritten/shared string (#1212)

This commit is contained in:
TheCatLady
2021-03-17 23:49:11 -04:00
committed by GitHub
parent ea1863ac3a
commit dfd4ff9229
2 changed files with 3 additions and 2 deletions

View File

@@ -4,7 +4,7 @@ import { defineMessages, useIntl } from 'react-intl';
import PageTitle from '../components/Common/PageTitle';
const messages = defineMessages({
errormessagewithcode: '404 - {error}',
errormessagewithcode: '{statusCode} - {error}',
pagenotfound: 'Page Not Found',
returnHome: 'Return Home',
});
@@ -17,6 +17,7 @@ const Custom404: React.FC = () => {
<PageTitle title={intl.formatMessage(messages.pagenotfound)} />
<div className="text-4xl">
{intl.formatMessage(messages.errormessagewithcode, {
statusCode: 404,
error: intl.formatMessage(messages.pagenotfound),
})}
</div>