Skip to content

Commit

Permalink
fix: locale and layouts errors
Browse files Browse the repository at this point in the history
  • Loading branch information
ovflowd committed Nov 21, 2023
1 parent 9b37e2d commit eac9cac
Show file tree
Hide file tree
Showing 3 changed files with 14 additions and 20 deletions.
File renamed without changes.
16 changes: 14 additions & 2 deletions app/[locale]/not-found.tsx
Original file line number Diff line number Diff line change
@@ -1,3 +1,15 @@
import NotFound from '@/app/not-found';
import { useTranslations } from 'next-intl';
import type { FC } from 'react';

export default NotFound;
const LocalizedNotFound: FC = () => {
const t = useTranslations();

return (
<div className="container">
<h2>{t('pages.404.title')}</h2>
<h3>{t('pages.404.description')}</h3>
</div>
);
};

export default LocalizedNotFound;
18 changes: 0 additions & 18 deletions app/not-found.tsx

This file was deleted.

0 comments on commit eac9cac

Please sign in to comment.