-
Notifications
You must be signed in to change notification settings - Fork 689
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #664 from OpenZeppelin/659-fix-react-router-to-fal…
…lback-in-404 fix react router and stylized 404 error page
- Loading branch information
Showing
14 changed files
with
87 additions
and
23 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 |
---|---|---|
@@ -1,12 +1,39 @@ | ||
import React from 'react' | ||
|
||
const NotFound404 = () => { | ||
return ( | ||
<div className="container"> | ||
<br/> | ||
<h3 className="title">404 Not Found</h3> | ||
</div> | ||
) | ||
import React from "react"; | ||
import { connect } from "react-redux"; | ||
import { bindActionCreators } from "redux"; | ||
import { loadTranslations } from "../../utils/translations"; | ||
import { randBadIcon } from "../../utils/^^"; | ||
import "../../styles/app.css" | ||
import Footer from "../common/Footer"; | ||
|
||
class NotFound404 extends React.Component { | ||
render() { | ||
let language = localStorage.getItem("lang"); | ||
let strings = loadTranslations(language); | ||
|
||
return ( | ||
<div className="helpcontainer"> | ||
<div className="lines"></div> | ||
<main className="page-not-found-container"> | ||
<h1>{randBadIcon()}</h1> | ||
<h3 className="page-not-found-title">{strings.PageNotFoundTitle}</h3> | ||
<h4 className="page-not-found-text">{strings.PageNotFoundText}</h4> | ||
</main> | ||
{/* Footer */} | ||
<Footer></Footer> | ||
</div> | ||
); | ||
} | ||
} | ||
|
||
function mapStateToProps(state) { | ||
return { | ||
language: state.lang, | ||
}; | ||
} | ||
|
||
function mapDispatchToProps(dispatch) { | ||
return bindActionCreators({}, dispatch); | ||
} | ||
|
||
export default NotFound404 | ||
export default connect(mapStateToProps, mapDispatchToProps)(NotFound404); |
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
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
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
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
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
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
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