
Research
Two Malicious Rust Crates Impersonate Popular Logger to Steal Wallet Keys
Socket uncovers malicious Rust crates impersonating fast_log to steal Solana and Ethereum wallet keys from source code.
@sensenet/icons-react
Advanced tools
A React component rendering icons for sensenet supporting material-ui, fontawesome, flaticon material-design and sensenet 6 image icons.
# Yarn
yarn add @sensenet/icons-react
# NPM
npm install @sensenet/icons-react
There's a base component to handle the different icon types and an enum for the exact types that are supported. Import the base component and the enum to set which icon type you want to use. With no type param it fallbacks to material-ui as it is the default.
import { Icon } from '@sensenet/icons-react'
...
<Icon iconName="file">
...
Check material-ui icons' page to get the name of the icon you need and set it as the iconName
of the component. As optional parameters you can set fontSize
, color
, classes
, style
, className
and you can add an eventHandler function to the onClick
param which will called when the icon is clicked.
import { Icon, iconType } from '@sensenet/icons-react'
...
<Icon
type={iconType.materialui}
iconName="file"
fontSize="default",
color="primary"
onClick={(e) => myEventHandler(e.target)}
>
...
Check FontAwesome icons' page to get the name of the icon you need and set it as the iconName
of the component. As optional parameters you can set fontSize
, color
, classes
, style
, className
and you can add an eventHandler function to the onClick
param which will called when the icon is clicked.
import { Icon, iconType } from '@sensenet/icons-react'
...
<Icon
type={iconType.fontawesome}
iconName="file"
fontSize="default",
color="primary"
onClick={(e) => myEventHandler(e.target)}
>
...
Check Flaticon material-designs' icons' page to get the name of the icon you need and set it as the iconName
of the component. As optional parameters you can set fontSize
, color
, classes
, style
, className
and you can add an eventHandler function to the onClick
param which will called when the icon is clicked.
import { Icon, iconType } from '@sensenet/icons-react'
...
<Icon
type={iconType.flaticon}
iconName="file"
fontSize="default",
color="primary"
onClick={(e) => myEventHandler(e.target)}
>
...
In the old versions of sensenet there was a naming convention to load images, so that you wanted to use the file icon, it was placed in a pre-defined place (/Root/Global/images/icons/{16|32|64}) with the name file.png
. We moved the part of that logic into this new package with copying all the related icon images in almost the same structure. So if you want to use the old image icons use the Icon component the following way:
import { Icon, iconType } from '@sensenet/icons-react'
...
<Icon
type={iconType.image}
iconName="file"
size={16},
onClick={(e) => myEventHandler(e.target)}
>
...
Flaticon material-design icons made by google from www.flaticon.com
FAQs
A React component rendering icons for sensenet.
The npm package @sensenet/icons-react receives a total of 65 weekly downloads. As such, @sensenet/icons-react popularity was classified as not popular.
We found that @sensenet/icons-react 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
Socket uncovers malicious Rust crates impersonating fast_log to steal Solana and Ethereum wallet keys from source code.
Research
A malicious package uses a QR code as steganography in an innovative technique.
Research
/Security News
Socket identified 80 fake candidates targeting engineering roles, including suspected North Korean operators, exposing the new reality of hiring as a security function.