mirror of
https://github.com/strapi/strapi.git
synced 2025-10-18 19:43:22 +00:00
Fix NotFound compo
This commit is contained in:
parent
e302b210b3
commit
9e64bc095a
@ -17,7 +17,7 @@ function NotFound({ history }) {
|
||||
onClick={e => {
|
||||
e.stopPropagation();
|
||||
|
||||
history.goBack();
|
||||
history.push('/');
|
||||
}}
|
||||
/>
|
||||
</Wrapper>
|
||||
@ -26,7 +26,7 @@ function NotFound({ history }) {
|
||||
|
||||
NotFound.propTypes = {
|
||||
history: PropTypes.shape({
|
||||
goBack: PropTypes.func,
|
||||
push: PropTypes.func,
|
||||
}).isRequired,
|
||||
};
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user