diff --git a/README.md b/README.md index 2fe74c6b..3cdacf43 100644 --- a/README.md +++ b/README.md @@ -108,7 +108,7 @@ Outline is still built and maintained by a small team – we'd love your help to However, before working on a pull request please let the core team know by creating or commenting in an issue on [GitHub](https://www.github.com/outline/outline/issues), and we'd also love to hear from you in our [Spectrum community](https://spectrum.chat/outline). This way we can ensure that an approach is agreed on before code is written and will hopefully help to get your contributions integrated faster! -If you're looking for ways to get started, here's a list of ways to help us improve Outline: +If you’re looking for ways to get started, here's a list of ways to help us improve Outline: * Issues with [`good first issue`](https://github.com/outline/outline/labels/good%20first%20issue) label * Performance improvements, both on server and frontend diff --git a/app/scenes/Document/Document.js b/app/scenes/Document/Document.js index c2a0df02..534f04c7 100644 --- a/app/scenes/Document/Document.js +++ b/app/scenes/Document/Document.js @@ -31,6 +31,7 @@ import LoadingIndicator from 'components/LoadingIndicator'; import CenteredContent from 'components/CenteredContent'; import PageTitle from 'components/PageTitle'; import Search from 'scenes/Search'; +import Error404 from 'scenes/Error404'; const AUTOSAVE_INTERVAL = 3000; const DISCARD_CHANGES = ` @@ -237,7 +238,7 @@ class DocumentScene extends React.Component { const isShare = match.params.shareId; if (this.notFound) { - return ; + return isShare ? : ; } return ( diff --git a/app/scenes/Error404/Error404.js b/app/scenes/Error404/Error404.js index 041767bd..dfab52b8 100644 --- a/app/scenes/Error404/Error404.js +++ b/app/scenes/Error404/Error404.js @@ -1,25 +1,19 @@ // @flow import * as React from 'react'; -import { Link } from 'react-router-dom'; - import CenteredContent from 'components/CenteredContent'; import PageTitle from 'components/PageTitle'; -class Error404 extends React.Component<*> { - render() { - return ( - - -

Not Found

- -

We're unable to find the page you're accessing.

- -

- Maybe you want to try search instead? -

-
- ); - } -} +const Error404 = () => { + return ( + + +

Not Found

+

We were unable to find the page you’re looking for.

+

+ Go to homepage. +

+
+ ); +}; export default Error404; diff --git a/app/scenes/Search/Search.js b/app/scenes/Search/Search.js index 3e823117..e4a031ba 100644 --- a/app/scenes/Search/Search.js +++ b/app/scenes/Search/Search.js @@ -121,7 +121,7 @@ class Search extends React.Component { @action loadMoreResults = async () => { - // Don't paginate if there aren't more results or we're in the middle of fetching + // Don't paginate if there aren't more results or we’re in the middle of fetching if (!this.allowLoadMore || this.isFetching) return; // Fetch more results