Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
Eclipse Foundation
IT
Websites
membership.eclipse.org
Commits
af462bab
Unverified
Commit
af462bab
authored
Aug 27, 2021
by
Zhou (Link) Fang
Committed by
GitHub
Aug 27, 2021
Browse files
Added a return to home button for 50x page (#295)
parent
4a1c5f17
Changes
1
Show whitespace changes
Inline
Side-by-side
src/main/www/src/components/ErrorPages/InternalError50x.js
View file @
af462bab
import
{
Button
}
from
"
@material-ui/core
"
;
export
default
function
InternalError50x
()
{
return
(
<>
<
div
className
=
"
margin-bottom-20
"
>
<
h1
>
An
unexpected
error
occurred
<
/h1
>
<
p
>
Sorry
,
the
page
you
are
looking
for
is
currently
unavailable
.
<
/p
>
<
p
>
Please
try
again
later
.
<
/p
>
<
/
>
<
Button
variant
=
"
contained
"
color
=
"
primary
"
onClick
=
{()
=>
window
.
location
.
assign
(
window
.
location
.
origin
)}
>
Return
to
Homepage
<
/Button
>
<
/div
>
);
}
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment