
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.
@hixme/modal
Advanced tools
Implementation of a global modal component with Redux and the @hixme-ui/modal package and -- by extension -- the react-modal package for use within the Hixme ecosystem. For more information on props for use with the MrModal
component, see the @hixme-ui/modal README
import { MrModal } from '@hixme/modal'
<MrModal
dialog
medium
title='All your base are belong to us'
confirmLabel='Get down!'
cancelLabel='Eh, maybe not...'
>
{/* Modal content here */}
</MrModal>
After creating your modals, you will need to pass them to your <MrModalManager />
component, located at your project's root.
import { MrModalManager } from '@hixme/modal'
// In project root
import TestModal from '/modal/path/here'
<MrModalManager
appElementId='app-element-node'
modals={{
TEST: TestModal,
}}
/>
Important: In the modals
object, the key is your modal string constant and the value is your modal component itself.
Additionally, you can supply the MrModalManager with your own appElement ID. This is the ID which needs to be assigned to the element wrapping the rest of your application.
To open the modal, you'll need to dispatch the setModal action, passing in the string constant you've defined for your modal.
dispatch(setModal(YOUR_MODAL))
You can also pass some data to your modal as a second argument in the dispatch.
dispatch(setModal(YOUR_MODAL, { myData }))
myData
can then be accesed on the component props.
const MyModalComponent = ({
data: { myData }
}) => (
<MrModal>
...
</MrModal>
)
Name | Description |
---|---|
setModal | Set current modal with modal constant name |
setData | Add argument to data object |
clearModal | Clear entire current modal store (including data and viewList) |
addViewToList | Add modal constant name to view list |
removeViewFromList | Remove modal constant name to view list |
Name | Description |
---|---|
getModal | Returns the entire modal store |
getCurrentView | Returns only the current modal constant |
getViewList | Returns the current viewList key |
hasActiveModal | Returns if there is a currently active modal |
getModalData | Returns the current data object |
FAQs
Hixme Modal
We found that @hixme/modal demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 8 open source maintainers 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.