oysterprotocol/webinterface

View on GitHub
src/components/payment-invoice/index.tsx

Summary

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

import PaymentInvoiceSlide from "./payment-invoice-slide";

const mapStateToProps = state => ({
  cost: state.upload.invoice.cost,
  ethAddress: state.upload.invoice.ethAddress,
  gasPrice: state.upload.gasPrice
});
const mapDispatchToProps = dispatch => ({});

const PaymentInvoice = ({ cost, ethAddress, gasPrice }: any) => (
  <PaymentInvoiceSlide
    cost={cost}
    ethAddress={ethAddress}
    gasPrice={gasPrice}
  />
);

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