-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
5 changed files
with
64 additions
and
2 deletions.
There are no files selected for viewing
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
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,23 @@ | ||
import React from 'react'; | ||
import img from '../../../../public/resources/images/404-Logo.png'; | ||
|
||
|
||
const ErrorPage = () => ( | ||
<div className="container"> | ||
<div className="row"> | ||
<div className="col s12 center-align m-15-auto" > | ||
<img src={img} alt="404 error" className="responsive-img animate" width="400" height="150" /> | ||
<p className="flow-text valign-wrapper" > | ||
Unfortunately the page you are looking for could not be found. It may have been removed, | ||
had its name changed or is temporarily unavailable. | ||
</p> | ||
<p className="flow-text" > | ||
Check the URL you entered for mistakes and try again. | ||
</p> | ||
<a href="/teams" className="top-margin bottom-margin waves-effect waves-light btn blue-btn">Go back to Home page</a> | ||
</div> | ||
</div> | ||
</div> | ||
); | ||
|
||
export default ErrorPage; |
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
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,11 @@ | ||
import React from 'react'; | ||
import { shallow } from 'enzyme'; | ||
|
||
import ErrorPage from '../../../../modules/common/404'; | ||
|
||
describe('Render the error page', () => { | ||
let wrapper = shallow(<ErrorPage />); | ||
it('Should properly render the error page', () => { | ||
expect(wrapper.length).toBe(1); | ||
}); | ||
}); |
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