Research
Security News
Quasar RAT Disguised as an npm Package for Detecting Vulnerabilities in Ethereum Smart Contracts
Socket researchers uncover a malicious npm package posing as a tool for detecting vulnerabilities in Etherium smart contracts.
@mintgate/react-mintgate
Advanced tools
This is a widget library for React for creating and viewing token protected content.
This is a widget library for React for creating and viewing token protected content.
Install:
yarn add @mintgate/react-mintgate
jwttoken
parameter (for Token gating form and List/Grid of token gated links by token).In React project:
Required prop:
Optional prop:
import '@mintgate/react-mintgate/dist/lib.css'
import { TPPFormWidget} from '@mintgate/react-mintgate';
function App() {
return (
<div className="App">
<TPPFormWidget jwttoken="yourjwttoken" theme='oneofourthemes'/>
</div>
);
}
export default App;
Required prop:
Optional prop:
import '@mintgate/react-mintgate/dist/lib.css'
import { TPPLinkList} from '@mintgate/react-mintgate';
function App() {
return (
<div className="App">
<TPPLinkList tokentid='yourtokenaddress' theme='oneofourthemes'/>
</div>
);
}
export default App;
Required prop:
Optional prop:
import '@mintgate/react-mintgate/dist/lib.css'
import { TPPLinkGrid} from '@mintgate/react-mintgate';
function App() {
return (
<div className="App">
<TPPLinkGrid base="4" lg="3" md="2" sm="1" xs="1" tokentid='yourtokenaddress' theme='oneofourthemes'/>
</div>
);
}
export default App;
Required prop:
Optional prop:
import '@mintgate/react-mintgate/dist/lib.css'
import { TPPLinkListUsers} from '@mintgate/react-mintgate';
function App() {
return (
<div className="App">
<TPPLinkListUsers
userid='youruserid'
jwttoken='yourjwttoken' theme='oneofourthemes'/>
</div>
);
}
export default App;
Required prop:
Optional prop:
import '@mintgate/react-mintgate/dist/lib.css'
import { TPPLinkGridUsers} from '@mintgate/react-mintgate';
function App() {
return (
<div className="App">
<TPPLinkGridUsers
userid='youruserid'
base="4" lg="3" md="2" sm="1" xs="1"
jwttoken='yourjwttoken'
theme='oneofourthemes'/>
</div>
);
}
export default App;
Required prop: tokenName (string - name of token)
Optional prop: body (true/false boolean - true show the profile info, false hides the profile info and only shows photo)
import '@mintgate/react-mintgate/dist/lib.css'
import { TokenProfile} from '@mintgate/react-mintgate';
function App() {
return (
<div className="App">
<TokenProfile
tokenName="yourtokentid" body={true/false} />
</div>
);
}
export default App;
Optional - You can add any of the following style themes as a value to the theme parameter:
Example project in the repo:
/examples/helloworld
Internal: to build a new NPM version
yarn build
yarn publish
FAQs
This is a widget library for React for creating and viewing token protected content.
The npm package @mintgate/react-mintgate receives a total of 1 weekly downloads. As such, @mintgate/react-mintgate popularity was classified as not popular.
We found that @mintgate/react-mintgate demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 3 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
Security News
Socket researchers uncover a malicious npm package posing as a tool for detecting vulnerabilities in Etherium smart contracts.
Security News
Research
A supply chain attack on Rspack's npm packages injected cryptomining malware, potentially impacting thousands of developers.
Research
Security News
Socket researchers discovered a malware campaign on npm delivering the Skuld infostealer via typosquatted packages, exposing sensitive data.