update browser history to go back when exiting open and about, fixes #85
This commit is contained in:
parent
14a51b6332
commit
95daa80fc1
2 changed files with 2 additions and 2 deletions
|
@ -27,5 +27,5 @@ export function getProjects(username) {
|
||||||
}
|
}
|
||||||
|
|
||||||
export function closeSketchList() {
|
export function closeSketchList() {
|
||||||
browserHistory.push('/');
|
browserHistory.goBack();
|
||||||
}
|
}
|
||||||
|
|
|
@ -5,7 +5,7 @@ import { browserHistory } from 'react-router';
|
||||||
|
|
||||||
class About extends React.Component {
|
class About extends React.Component {
|
||||||
closeAboutModal() {
|
closeAboutModal() {
|
||||||
browserHistory.push('/');
|
browserHistory.goBack();
|
||||||
}
|
}
|
||||||
|
|
||||||
render() {
|
render() {
|
||||||
|
|
Loading…
Reference in a new issue