import React from "react"; import Modal from "@material-ui/core/Modal"; import "./index.scss"; interface TransferProps { handleClose: (e: React.MouseEvent) => void; isOpen: boolean; } interface TransferState {} export default class Transfer extends React.Component< TransferProps, TransferState > { constructor(props: TransferProps) { super(props); this.handleClose = this.handleClose.bind(this); this.state = { isOpen: true, }; } handleClose(e: React.MouseEvent) { this.props.handleClose(e); this.setState({ isOpen: false, }); } render() { return (
); } }