blob: 3fa7ce36c86637d6a824cc827d8faa8a977e2790 [file] [log] [blame]
import { connect } from 'react-redux';
import ChangesScreen from './ChangesScreen';
import Actions from '../actions';
const mapStateToProps = ({ changes }, ownProps) => {
return {
changes: changes.filteredChanges,
loaded: changes.isLoaded,
databaseName: ownProps.databaseName,
isShowingSubset: changes.showingSubset
};
};
const mapDispatchToProps = (dispatch) => {
return {
loadChanges: (databaseName) => {
dispatch(Actions.loadChanges(databaseName));
}
};
};
const ChangesContainer = connect(
mapStateToProps,
mapDispatchToProps
)(ChangesScreen);
export default ChangesContainer;