EnquiryDetailModal.js 5.25 KB
import React, { Fragment } from "react";
import { FaAngleLeft } from "react-icons/fa";

const EnquiryDetailModal = ({ data, setdetailsModal }) => {
  return (
    <div>
      <Fragment>
        <div className="vendorDetails">
          <div className="row">
            <div className="col-12 col-lg-12">
              <div className="d-flex align-items-center justify-content-between">
                <div className="backDiv">
                  <span className="backArrow">
                    <FaAngleLeft
                      onClick={() => {
                        setdetailsModal(false);
                      }}
                    />
                  </span>
                  <span>Vendors List</span>
                </div>
              </div>
            </div>
            <div className="col-8 col-lg-8 mt-4">
              {/* <h4>End user</h4> */}
              <div className="row">
                <div className="col-12 col-lg-5">
                  <p className="phead">User details</p>
                  {/* <div className="row">
                  <p className="col-12 col-lg-6">Business PAN No.</p>
                  <p className="col-12 col-lg-6">{detail[0].attributes.pan}</p>
                </div> */}
                  {/* <div className="row">
                  <p className="col-12 col-lg-6">PAN</p>
                  <p className="col-12 col-lg-6 pview">View</p>
                </div> */}
                  <div className="row">
                    <p className="col-12 col-lg-6">Name</p>
                    <p className="col-12 col-lg-6">{data.endUser.data.attributes.name}</p>
                  </div>
                  {/* <div className="row">
                  <p className="col-12 col-lg-6">GST Certificate</p>
                  <p className="col-12 col-lg-6 pview">View</p>
                </div> */}
                  <div className="row">
                    <p className="col-12 col-lg-6">Email</p>
                    <p className="col-12 col-lg-6">{data.endUser.data.attributes.email}</p>
                  </div>
                  <div className="row">
                    <p className="col-12 col-lg-6">Phone</p>
                    <p className="col-12 col-lg-6">{data.endUser.data.attributes.phone}</p>
                  </div>
                  {/* <div className="row">
                  <p className="col-12 col-lg-6">Vendor website:</p>
                  <p className="col-12 col-lg-6">{detail[0].attributes.businessName}</p>
                </div> */}
                </div>
                <div className="col-12 col-lg-7 borderLeft">
                  <p className="phead">Activity</p>
                  <div className="row">
                    <p className="col-12 col-lg-4">Activity Name</p>
                    <p className="col-12 col-lg-8">{data.experience.data.attributes.name}</p>
                  </div>
                  <div className="row">
                    <p className="col-12 col-lg-4">Link</p>
                    <p className="col-12 col-lg-8">
                      <a href={data.experience.data.attributes.link} target="_blank">
                        {data.experience.data.attributes.link}
                      </a>
                    </p>
                  </div>
                  <div className="row">
                    <p className="col-12 col-lg-4">Activity Name</p>
                    <p className="col-12 col-lg-8">{data.experience.data.attributes.name}</p>
                  </div>
                  <div className="row">
                    <p className="col-12 col-lg-4">Country</p>
                    <p className="col-12 col-lg-8">United States</p>
                  </div>
                </div>
                <div className="col-12 col-lg-7 borderLeft">
                  <p className="phead">Vendor Details</p>
                  <div className="row">
                    <p className="col-12 col-lg-4">Vendor Name</p>
                    <p className="col-12 col-lg-8">{data.vendor.data.attributes.name}</p>
                  </div>
                  {/* <div className="row">
                    <p className="col-12 col-lg-4">Link</p>
                    <p className="col-12 col-lg-8">
                      <a href={data.experience.data.attributes.link} target="_blank">
                        {data.experience.data.attributes.link}
                      </a>
                    </p>
                  </div> */}
                  <div className="row">
                    <p className="col-12 col-lg-4">Vendor email</p>
                    <p className="col-12 col-lg-8">{data.vendor.data.attributes.email}</p>
                  </div>
                  <div className="row">
                    <p className="col-12 col-lg-4">Vendor Phone</p>
                    <p className="col-12 col-lg-8">{data.vendor.data.attributes.phone}</p>
                  </div>
                </div>
              </div>
            </div>
          </div>
        </div>

        {/* {showActivityDetailsModal && <ActivityDetailsModal show={showActivityDetailsModal} handleClose={handleCloseActivityDetails} activityDetailInfo={activityDetailInfo} />}

      {showRejectModal && <RejectModal show={showRejectModal} handleClose={handleCloseRejectModal} detail={detail} setShowDetail={setShowDetail} />} */}
      </Fragment>
    </div>
  );
};

export default EnquiryDetailModal;