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