import React, { Component } from 'react'; import { Modal, ModalBody, ModalFooter, ModalHeader } from 'reactstrap'; import PropTypes from 'prop-types'; import { shortUrlType } from '../reducers/shortUrlsList'; import './QrCodeModal.scss'; export default class DeleteShortUrlModal extends Component { static propTypes = { shortUrl: shortUrlType, toggle: PropTypes.func, isOpen: PropTypes.bool, }; state = { inputValue: '' }; render() { const { shortUrl, toggle, isOpen } = this.props; return (
e.preventDefault()}> Delete short URL

Caution! You are about to delete a short URL.

This action cannot be undone. Once you have deleted it, all the visits stats will be lost.

this.setState({ inputValue: e.target.value })} />
); } }