mirror of
https://github.com/Paris-est-Ludique/intranet.git
synced 2025-06-08 16:44:21 +02:00
404 style
This commit is contained in:
parent
2e2442bb7a
commit
2d97d5886f
@ -1,21 +0,0 @@
|
|||||||
/**
|
|
||||||
* @jest-environment jsdom
|
|
||||||
*/
|
|
||||||
import { render } from "@testing-library/react"
|
|
||||||
import { MemoryRouter } from "react-router-dom"
|
|
||||||
|
|
||||||
import NotFound from "../index"
|
|
||||||
|
|
||||||
describe("<NotFound />", () => {
|
|
||||||
it("renders", () => {
|
|
||||||
const tree = render(
|
|
||||||
<MemoryRouter>
|
|
||||||
{/*
|
|
||||||
@ts-expect-error */}
|
|
||||||
<NotFound />
|
|
||||||
</MemoryRouter>
|
|
||||||
).container.firstChild
|
|
||||||
|
|
||||||
expect(tree).toMatchSnapshot()
|
|
||||||
})
|
|
||||||
})
|
|
@ -1,11 +0,0 @@
|
|||||||
// Jest Snapshot v1, https://goo.gl/fbAQLP
|
|
||||||
|
|
||||||
exports[`<NotFound /> renders 1`] = `
|
|
||||||
<div
|
|
||||||
class="NotFound"
|
|
||||||
>
|
|
||||||
<p>
|
|
||||||
Oops, Page was not found!
|
|
||||||
</p>
|
|
||||||
</div>
|
|
||||||
`;
|
|
@ -13,9 +13,11 @@ const NotFound = ({ staticContext }: Props) => {
|
|||||||
if (staticContext) staticContext.statusCode = 404
|
if (staticContext) staticContext.statusCode = 404
|
||||||
|
|
||||||
return (
|
return (
|
||||||
<div className={styles.NotFound}>
|
<div className={styles.notFoundPage}>
|
||||||
<Helmet title="Oops" />
|
<div className={styles.notFoundContent}>
|
||||||
<p>Oops, Page was not found!</p>
|
<Helmet title="Oops" />
|
||||||
|
<p>Oops, page was not found!</p>
|
||||||
|
</div>
|
||||||
</div>
|
</div>
|
||||||
)
|
)
|
||||||
}
|
}
|
||||||
|
@ -1,3 +1,9 @@
|
|||||||
.NotFound {
|
@import "../../theme/mixins";
|
||||||
padding: 0 15px;
|
|
||||||
|
.notFoundPage {
|
||||||
|
@include page-wrapper-center;
|
||||||
|
}
|
||||||
|
|
||||||
|
.notFoundContent {
|
||||||
|
@include page-content-wrapper;
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user