
Security News
vlt Launches "reproduce": A New Tool Challenging the Limits of Package Provenance
vlt's new "reproduce" tool verifies npm packages against their source code, outperforming traditional provenance adoption in the JavaScript ecosystem.
@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
How to Get Your Widget Token:
jwttoken
parameter (for Token gating form and List/Grid of token gated links by token).Widget currently available:
In React project:
##Form to set up token gated links: Required 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;
##List of Token Gated Links by Token: Required 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;
##Grid of Token Gated Links by Token: Required 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;
##List of Token Gated Links by User: Required 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;
##Grid of Token Gated Links by User: Required 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;
##Token Profile: 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/hellowor
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.
Security News
vlt's new "reproduce" tool verifies npm packages against their source code, outperforming traditional provenance adoption in the JavaScript ecosystem.
Research
Security News
Socket researchers uncovered a malicious PyPI package exploiting Deezer’s API to enable coordinated music piracy through API abuse and C2 server control.
Research
The Socket Research Team discovered a malicious npm package, '@ton-wallet/create', stealing cryptocurrency wallet keys from developers and users in the TON ecosystem.