Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
X
xpub-faraday
Manage
Activity
Members
Labels
Plan
Issues
2
Issue boards
Milestones
Iterations
Wiki
Requirements
Code
Merge requests
0
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Deploy
Releases
Container Registry
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
Repository analytics
Code review analytics
Issue analytics
Insights
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
This is an archived project. Repository and other project resources are read-only.
Show more breadcrumbs
xpub
xpub-faraday
Commits
e232ef34
Commit
e232ef34
authored
7 years ago
by
Bogdan Cochior
Browse files
Options
Downloads
Patches
Plain Diff
Add 404 page
parent
912e1d06
No related branches found
No related tags found
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
packages/components-faraday/src/components/UIComponents/NotFound.js
+20
-0
20 additions, 0 deletions
...omponents-faraday/src/components/UIComponents/NotFound.js
packages/xpub-faraday/app/routes.js
+2
-0
2 additions, 0 deletions
packages/xpub-faraday/app/routes.js
with
22 additions
and
0 deletions
packages/components-faraday/src/components/UIComponents/NotFound.js
0 → 100644
+
20
−
0
View file @
e232ef34
import
React
from
'
react
'
import
{
Icon
}
from
'
@pubsweet/ui
'
const
NotFound
=
({
history
})
=>
(
<
div
style
=
{{
width
:
'
70vw
'
,
margin
:
'
0 auto
'
,
textAlign
:
'
center
'
}}
>
<
div
>
<
Icon
size
=
{
32
}
>
cloud
-
off
<
/Icon
>
<
/div
>
<
h2
>
The
page
cannot
be
found
<
/h2
>
<
h3
>
The
page
you
are
looking
for
might
have
been
removed
,
had
its
name
changed
,
or
is
temporarily
unavailable
.
<
/h3
>
<
a
href
=
"
#
"
onClick
=
{
history
.
goBack
}
>
Back
<
/a
>
<
/div
>
)
export
default
NotFound
This diff is collapsed.
Click to expand it.
packages/xpub-faraday/app/routes.js
+
2
−
0
View file @
e232ef34
...
@@ -14,6 +14,7 @@ import DashboardPage from 'pubsweet-component-xpub-dashboard/src/components/Dash
...
@@ -14,6 +14,7 @@ import DashboardPage from 'pubsweet-component-xpub-dashboard/src/components/Dash
import
WizardPage
from
'
pubsweet-component-wizard/src/components/WizardPage
'
import
WizardPage
from
'
pubsweet-component-wizard/src/components/WizardPage
'
import
ManuscriptPage
from
'
pubsweet-component-xpub-manuscript/src/components/ManuscriptPage
'
import
ManuscriptPage
from
'
pubsweet-component-xpub-manuscript/src/components/ManuscriptPage
'
import
ConfirmationPage
from
'
pubsweet-components-faraday/src/components/UIComponents/ConfirmationPage
'
import
ConfirmationPage
from
'
pubsweet-components-faraday/src/components/UIComponents/ConfirmationPage
'
import
NotFound
from
'
pubsweet-components-faraday/src/components/UIComponents/NotFound
'
const
Routes
=
()
=>
(
const
Routes
=
()
=>
(
<
App
>
<
App
>
...
@@ -36,6 +37,7 @@ const Routes = () => (
...
@@ -36,6 +37,7 @@ const Routes = () => (
exact
exact
path
=
"
/projects/:project/versions/:version/manuscript
"
path
=
"
/projects/:project/versions/:version/manuscript
"
/>
/>
<
Route
component
=
{
NotFound
}
path
=
"
*
"
/>
<
/App
>
<
/App
>
)
)
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment