mirror of
https://github.com/Unleash/unleash.git
synced 2024-12-22 19:07:54 +01:00
fix(router): Add 'history' prop to the archive-list.
This commit is contained in:
parent
b97480c01c
commit
2860021822
@ -2,9 +2,10 @@ import React from 'react';
|
||||
import Archive from '../../component/archive/archive-list-container';
|
||||
import PropTypes from 'prop-types';
|
||||
|
||||
const render = ({ match }) => <Archive name={match.params.name} />;
|
||||
const render = ({ match: { params }, history }) => <Archive name={params.name} history={history} />;
|
||||
render.propTypes = {
|
||||
match: PropTypes.object,
|
||||
history: PropTypes.object,
|
||||
};
|
||||
|
||||
export default render;
|
||||
|
Loading…
Reference in New Issue
Block a user