Skip to content
This repository has been archived by the owner on Feb 5, 2021. It is now read-only.

Commit

Permalink
Remove go back from UnknownError component
Browse files Browse the repository at this point in the history
  • Loading branch information
nadundesilva committed Sep 27, 2019
1 parent 6c13c15 commit a77cee3
Showing 1 changed file with 1 addition and 10 deletions.
11 changes: 1 addition & 10 deletions components/portal/src/components/common/error/UnknownError.js
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,6 @@
* under the License.
*/

import ArrowBack from "@material-ui/icons/ArrowBack";
import Button from "@material-ui/core/Button/Button";
import CelleryError from "../../../img/celleryError.jpg";
import Home from "@material-ui/icons/Home";
Expand Down Expand Up @@ -65,7 +64,7 @@ const styles = (theme) => ({
}
});

const UnknownError = ({classes, history, title, description, showNavigationButtons}) => (
const UnknownError = ({classes, title, description, showNavigationButtons}) => (
<div className={classes.unknownErrorContainer}>
<div className={classes.unknownError}>
<img src={CelleryError} className={classes.unknownErrorImg} alt={"Unknown Error"}/>
Expand All @@ -85,11 +84,6 @@ const UnknownError = ({classes, history, title, description, showNavigationButto
showNavigationButtons
? (
<div className={classes.navigationButtonsContainer}>
<Button variant={"outlined"} size={"small"} className={classes.navigationButton}
onClick={() => history.goBack()}>
<ArrowBack className={classes.navigationButtonIcon}/>
Go Back
</Button>
<Button variant={"outlined"} size={"small"} className={classes.navigationButton}
onClick={() => window.location.assign("/")}>
<Home fontSize={"small"} className={classes.navigationButtonIcon}/>
Expand All @@ -105,9 +99,6 @@ const UnknownError = ({classes, history, title, description, showNavigationButto

UnknownError.propTypes = {
classes: PropTypes.object.isRequired,
history: PropTypes.shape({
goBack: PropTypes.func.isRequired
}),
title: PropTypes.string,
description: PropTypes.string,
showNavigationButtons: PropTypes.bool
Expand Down

0 comments on commit a77cee3

Please sign in to comment.