-
-
Notifications
You must be signed in to change notification settings - Fork 8.6k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
chore(v2): make feedback page accessible, not 404 (#1695)
* chore(v2): make feedback page accessible, not 404 * hack
- Loading branch information
Showing
1 changed file
with
35 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,35 @@ | ||
/** | ||
* Copyright (c) 2017-present, Facebook, Inc. | ||
* | ||
* This source code is licensed under the MIT license found in the | ||
* LICENSE file in the root directory of this source tree. | ||
*/ | ||
|
||
import React from 'react'; | ||
import Layout from '@theme/Layout'; | ||
import Feedback from '../pages/feedback'; | ||
|
||
function NotFound({location}) { | ||
if (/^\/feedback/.test(location.pathname)) { | ||
return <Feedback />; | ||
} | ||
|
||
return ( | ||
<Layout title="Page Not Found"> | ||
<div className="container margin-vert--xl" data-canny> | ||
<div className="row"> | ||
<div className="col col--6 col--offset-3"> | ||
<h1 className="hero__title">Page Not Found</h1> | ||
<p>We could not find what you were looking for.</p> | ||
<p> | ||
Please contact the owner of the site that linked you to the | ||
original URL and let them know their link is broken. | ||
</p> | ||
</div> | ||
</div> | ||
</div> | ||
</Layout> | ||
); | ||
} | ||
|
||
export default NotFound; |