
Security News
/Research
Wallet-Draining npm Package Impersonates Nodemailer to Hijack Crypto Transactions
Malicious npm package impersonates Nodemailer and drains wallets by hijacking crypto transactions across multiple blockchains.
adrienc_custom_modal_popup
Advanced tools
adrienc_custom_modal_popup is a quite simple modal, with content box and close button. By default the modal window is screen's centered horizontaly and verticaly. It's really easy to customize it with all sorts of props.
You can install adrienc_custom_modal_popup with npm. My React component : npm
npm install adrienc_custom_modal_popup
import { Modal } from 'adrienc_custom_modal_popup';
Then you can use and customize the modal :
<Modal
onClose={}
backdropStyle={}
modalStyle={}
header={}
text={}
/>
header - which one can customize the headertext
header={props}
text - which one can customize the text bellow
text={props}
closeModal - Event handler with which one can write logic to close the modal.
With which one can customize the styling of visible modal window.
modalStyle={{ backgroundColor: '#303245', color: 'white' }}
With which one can customize the styling of the backdrop of modal window.
backdropStyle={{ backgroundColor: 'rgba(21, 23, 43, 0.65)' }}
With which one can customize the styling of the header.
headerStyle={{ color: 'white', backgroundColor: '#15172b', padding: '10px', borderBottom:'2px solid #08d', background: 'linear-gradient(to right, #08d 10%, #303245 90%)' }}
To show or hide your modal window i recommand this method. Add this in your parent component :
const [isModalOpen, setIsModalOpen] = useState(false);
const closeModal = () => setIsModalOpen(false)
The modal is visible, you can pass a function to close the modal in order to close the modal from within the modal :
{modal && (
<Modal
closeModal={closeModal}
backdropStyle={{ custom inline style }}
modalStyle={{ custom inline style}}
headerStyle={{ custom inline style}}
header='header text'
text='text'
/>
)}
FAQs
custom modal openclassroom's project
The npm package adrienc_custom_modal_popup receives a total of 0 weekly downloads. As such, adrienc_custom_modal_popup popularity was classified as not popular.
We found that adrienc_custom_modal_popup demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
/Research
Malicious npm package impersonates Nodemailer and drains wallets by hijacking crypto transactions across multiple blockchains.
Security News
This episode explores the hard problem of reachability analysis, from static analysis limits to handling dynamic languages and massive dependency trees.
Security News
/Research
Malicious Nx npm versions stole secrets and wallet info using AI CLI tools; Socket’s AI scanner detected the supply chain attack and flagged the malware.