1.0.0 • Published 12 months ago

react-modal-hrnet v1.0.0

Weekly downloads
-
License
ISC
Repository
github
Last release
12 months ago

react-modal-hrnet

react-modal-hrnet is a library created internally for the company HRnet

Description

Confirmation message when creating a new employee

Install the modal

npm install react-modal-hrnet

Use of modal

/**
 * Modal component to show on successful creation of employee
 * @param {closeModal} // function to close modal
 * @returns 
 */

import Modal from "react-modal-hrnet";

   // Modal to display
  const [modal, setModal] = useState(false);

  const closeModal = () => {
    setModal(false);
  };

  const employee = () => {
    return (
        {modal ? <Modal closeModal={closeModal} /> : null}
    )
  }
1.0.0

12 months ago

0.0.1

2 years ago