1
0
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:
ivaosthu 2018-08-13 09:21:23 +02:00
parent b97480c01c
commit 2860021822

View File

@ -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;