import React, { Component } from 'react'; import Images from '../../assets/Images'; import { Typography } from '@material-ui/core'; import api from "../../api"; import Constant from '../../library/Constant'; export default class PopUpDelete extends Component { constructor(props) { super(props) this.state = { id: '', getApprovedBy: null, getTypes: null, } } componentDidMount() { if (this.props.type === 'delete') { // console.log(this.props.idoc) // console.log(this.props.data) } } onClickDelete() { if (this.props.type == 'delete') { let payload = this.props.idoc this.props.deleteDoc(payload) } } render() { return (
Delete {this.props.data[1]} ?
); } }