mirror of
https://github.com/Unleash/unleash.git
synced 2025-04-19 01:17:18 +02: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 Archive from '../../component/archive/archive-list-container';
|
||||||
import PropTypes from 'prop-types';
|
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 = {
|
render.propTypes = {
|
||||||
match: PropTypes.object,
|
match: PropTypes.object,
|
||||||
|
history: PropTypes.object,
|
||||||
};
|
};
|
||||||
|
|
||||||
export default render;
|
export default render;
|
||||||
|
Loading…
Reference in New Issue
Block a user