import * as React from "react"; import * as Strings from "~/common/strings"; import * as Constants from "~/common/constants"; import * as SVG from "~/components/system/svg"; import * as System from "~/components/system"; import { css } from "@emotion/react"; const STYLES_FOCUS = css` font-size: ${Constants.typescale.lvl1}; font-family: "inter-medium"; overflow-wrap: break-word; width: 100%; strong { font-family: "inter-semi-bold"; font-weight: 400; } `; const STYLES_SUBTEXT = css` margin-top: 8px; font-size: 12px; `; const STYLES_ITEM = css` margin-top: 16px; `; export default class SidebarCreatePaymentChannel extends React.Component { state = { address: "", amount: "" }; _handleSubmit = () => { alert("TODO: Create a new payment channel"); this.props.onSubmit({}); }; _handleCancel = () => { this.props.onCancel(); }; _handleChange = (e) => { this.setState({ [e.target.name]: e.target.value }); }; render() { let addresses = {}; this.props.viewer.addresses.forEach((a) => { addresses[a.value] = a; }); const currentAddress = addresses[this.props.selected.address]; return ( Create a payment channel {currentAddress.name}
2 FIL
Transaction Fee
2
Total Filecoin
Send
); } }