oysterprotocol/webinterface

View on GitHub
src/components/download-upload-history/index.tsx

Summary

Maintainability
A
0 mins
Test Coverage
import React from "react";
import { connect } from "react-redux";

import downloadUploadHistoryActions from "../../redux/actions/download-upload-history-actions";
import DownloadUploadHistoryButton from "./download-upload-history-button";

const mapStateToProps = () => ({});

const mapDispatchToProps = dispatch => ({
  beginDownloadUploadHistoryFn: () =>
    dispatch(downloadUploadHistoryActions.beginDownloadUploadHistoryAction())
});

const DownloadUploadHistory = ({ beginDownloadUploadHistoryFn }) => (
  <DownloadUploadHistoryButton download={beginDownloadUploadHistoryFn} />
);

export default connect(mapStateToProps, mapDispatchToProps)(
  DownloadUploadHistory
);