Skip to content

Commit

Permalink
[fix] 🪄 Replace a with div since it's <Link>
Browse files Browse the repository at this point in the history
  • Loading branch information
steward379 committed Mar 14, 2024
1 parent 4077e38 commit da55ac2
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 6 deletions.
4 changes: 1 addition & 3 deletions src/pages/404.tsx
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
// pages/404.tsx
import Link from 'next/link';
import React from 'react';
import { useTranslation } from 'next-i18next';
Expand All @@ -22,5 +21,4 @@ const Custom404: React.FC = () => {
);
}

export default Custom404;

export default Custom404;
5 changes: 2 additions & 3 deletions src/pages/500.tsx
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
// pages/500.tsx
import Link from 'next/link';
import React from 'react';
import { useTranslation } from 'next-i18next';
Expand All @@ -13,9 +12,9 @@ const Custom500: React.FC = () => {
<p className="text-xl text-gray-600 mt-4">{t('server-error')}</p>
<p className="text-gray-500 mt-2">{t('server-error-sorry')}</p>
<Link href="/">
<a className="mt-6 inline-block bg-blue-500 text-white py-2 px-4 rounded hover:bg-blue-600">
<div className="mt-6 inline-block bg-blue-500 text-white py-2 px-4 rounded hover:bg-blue-600">
{t('back-to-index')}
</a>
</div>
</Link>
</div>
</div>
Expand Down

1 comment on commit da55ac2

@vercel
Copy link

@vercel vercel bot commented on da55ac2 Mar 14, 2024

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.