Use global history on 500 page (#1446)
This commit is contained in:
parent
c967c03494
commit
44725c983e
|
|
@ -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>
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user