
Research
Malicious npm Packages Impersonate Flashbots SDKs, Targeting Ethereum Wallet Credentials
Four npm packages disguised as cryptographic tools steal developer credentials and send them to attacker-controlled Telegram infrastructure.
@surinderlohat/react-dialog
Advanced tools
Show Dialogs with easy way in react JS, super easy to use and can handel all the major user cases. ##### Based on the React hooks and reactive programing. #### No extra dependencies pure react js code & lightweight.
Show Dialogs with easy way in react JS, super easy to use and can handel all the major user cases.
npm install @surinderlohat/react-dialog
or
yarn add @surinderlohat/react-dialog
import { FC } from 'react';
import { DialogProvider } from '@surinderlohat/react-dialog';
import BootstrapDialog from './BootstrapDialog';
import MUIDialog from './MUIDialog';
// App.tsx
const App: FC = () => {
return (
<DialogProvider>
<BootstrapDialog />
<MUIDialog />
</DialogProvider>
);
};
export default App;
import { FC } from 'react';
import { Box, Button, Dialog, DialogTitle } from '@mui/material';
import { useDialog } from '@surinderlohat/react-dialog';
const MuiDialog: FC = () => {
const dialog = useDialog();
// Show MUI Dialog
const showMuiDialog = () => {
dialog.openDialog(
<Dialog open={true} onClose={() => dialog.closeDialog()}>
<DialogTitle>MUI Dialog Example</DialogTitle>
<p>Welcome to react dialog</p>
</Dialog>
);
};
return (
<Box sx={{ display: 'flex', justifyContent: 'center' }}>
<Button onClick={showMuiDialog}>SHOW MUI DIALOG </Button>
</Box>
);
};
export default MuiDialog;
import { FC } from 'react';
import { useDialog } from '@surinderlohat/react-dialog';
import { Modal, Button } from 'react-bootstrap';
import 'bootstrap/dist/css/bootstrap.min.css';
const BootstrapDialog: FC = () => {
const dialog = useDialog();
// Show Bootstrap Dialog
const showBootstrapDialog = () => {
dialog.openDialog(
<Modal.Dialog>
<Modal.Header closeButton>
<Modal.Title>Bootstrap Dialog Example</Modal.Title>
</Modal.Header>
<Modal.Body>
<p>Modal body text goes here.</p>
</Modal.Body>
<Modal.Footer>
<Button variant="secondary" onClick={() => dialog.closeDialog()}>
Close
</Button>
<Button variant="primary">Save changes</Button>
</Modal.Footer>
</Modal.Dialog>
);
};
return (
<div>
<Button onClick={showBootstrapDialog}>Show Dialog</Button>
</div>
);
};
export default BootstrapDialog;
MIT Free Software!
FAQs
Show Dialogs with easy way in react JS, super easy to use and can handel all the major user cases. ##### Based on the React hooks and reactive programing. #### No extra dependencies pure react js code & lightweight.
We found that @surinderlohat/react-dialog 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.
Research
Four npm packages disguised as cryptographic tools steal developer credentials and send them to attacker-controlled Telegram infrastructure.
Security News
Ruby maintainers from Bundler and rbenv teams are building rv to bring Python uv's speed and unified tooling approach to Ruby development.
Security News
Following last week’s supply chain attack, Nx published findings on the GitHub Actions exploit and moved npm publishing to Trusted Publishers.