import React from 'react'; import { Modal, ModalHeader, ModalBody, } from 'reactstrap'; export default class LinkEditModal extends React.PureComponent { constructor(props) { super(props); this.state = { show: false, isUseRelativePath: false, }; this.cancel = this.cancel.bind(this); this.toggleIsUseRelativePath = this.toggleIsUseRelativePath.bind(this); } show() { this.setState({ show: true }); } cancel() { this.hide(); } hide() { this.setState({ show: false, }); } toggleIsUseRelativePath() { this.setState({ isUseRelativePath: !this.state.isUseRelativePath }); } renderPreview() { // TODO GW-2658 } insertLinkIntoEditor() { // TODO GW-2659 } render() { return ( Edit Table
{ this.renderPreview } render preview
URI
URI
URI
{ this.renderPreview } render preview
); } }