Use global history on 500 page (#1446)

This commit is contained in:
Hetu Nandu 2020-10-28 16:29:34 +05:30 committed by GitHub
parent c967c03494
commit 44725c983e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -3,6 +3,7 @@ import styled from "styled-components";
import Button from "components/editorComponents/Button";
import PageUnavailableImage from "assets/images/404-image.png";
import { APPLICATIONS_URL } from "constants/routes";
import history from "utils/history";
const Wrapper = styled.div`
text-align: center;
@ -38,7 +39,7 @@ const ServerUnavailable = () => {
iconAlignment="right"
size="small"
className="button-position"
onClick={() => this.props.history.push(APPLICATIONS_URL)}
onClick={() => history.push(APPLICATIONS_URL)}
/>
</div>
</Wrapper>