Skip to content

Instantly share code, notes, and snippets.

@ErikGMatos
Created August 26, 2021 02:30
Show Gist options
  • Save ErikGMatos/c2c10b0b5a903247a1b03c48ce28736f to your computer and use it in GitHub Desktop.
Save ErikGMatos/c2c10b0b5a903247a1b03c48ce28736f to your computer and use it in GitHub Desktop.
const [showModal, setShowModal] = useState('');
{showModal === SET_ACTIVE_MODAL.createLead && (
<ModalCreateNewLead
handleClose={resetInfoCreateNewLead}
setShowModal={setShowModal}
setCloseCallbackType={setCloseCallbackType}
closeCallbackType={closeCallbackType}
errorCallback={errorCallback}
/>
)}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment