mirror of
https://github.com/freeCodeCamp/freeCodeCamp.git
synced 2026-10-24 23:49:06 +08:00
Co-authored-by: Huyen Nguyen <25715018+huyenltnguyen@users.noreply.github.com>
26 lines
744 B
TypeScript
26 lines
744 B
TypeScript
import { Router } from '@reach/router';
|
|
import { withPrefix } from 'gatsby';
|
|
import React from 'react';
|
|
|
|
/* eslint-disable max-len */
|
|
import ShowProfileOrFourOhFour from '../client-only-routes/show-profile-or-four-oh-four';
|
|
import FourOhFour from '../components/FourOhFour';
|
|
/* eslint-enable max-len */
|
|
|
|
function FourOhFourPage(): JSX.Element {
|
|
return (
|
|
<Router>
|
|
{/* Error from installing @types/react-helmet and @types/react-redux */}
|
|
{/* eslint-disable-next-line @typescript-eslint/ban-ts-comment */}
|
|
{/* @ts-ignore */}
|
|
<ShowProfileOrFourOhFour path={withPrefix('/:maybeUser')} />
|
|
|
|
<FourOhFour default />
|
|
</Router>
|
|
);
|
|
}
|
|
|
|
FourOhFourPage.displayName = 'FourOhFourPage';
|
|
|
|
export default FourOhFourPage;
|