import React from 'react'; import ReactDOM from 'react-dom'; import Button from 'material-ui/Button'; import TextField from 'material-ui/TextField'; import { withStyles } from 'material-ui/styles'; import PropTypes from 'prop-types'; import Dialog, { DialogActions, DialogContent, DialogContentText, DialogTitle, } from 'material-ui/Dialog'; import InsertLinkIcon from 'material-ui-icons/Link'; import ReactTooltip from 'react-tooltip' import Icon from 'material-ui/Icon'; import IconButton from 'material-ui/IconButton'; const button = { fontSize: '60px', paddingRight: '20px', paddingLeft: '20px', } const inlineStyle = { display: 'inline-block', } export default class addTorrentPopup extends React.Component { state = { open: false, }; handleClickOpen = () => { this.setState({ open: true }); }; handleRequestClose = () => { this.setState({ open: false }); }; handleSubmit = () => { this.setState({ open: false }); let magnetLinkSubmit = this.state.textValue; console.log("Sending magnet link: ", magnetLinkSubmit); ws.send(magnetLinkSubmit); } setTextValue = (event) => { this.setState({textValue: event.target.value}); } render() { const { classes, onRequestClose, handleRequestClose, handleSubmit } = this.props; return (
Add Magnet Link Add a Magnet Link here and hit submit to add torrent...
); } };