Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@gnosis.pm/dutchx-verification-react

Package Overview
Dependencies
Maintainers
12
Versions
9
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@gnosis.pm/dutchx-verification-react

Frontend verification React component for DutchX Protocol

  • 0.1.3
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
6
decreased by-40%
Maintainers
12
Weekly downloads
 
Created
Source

DutchX Verification React

Simple package for keeping all DutchX Protocol related verification required across multiple projects in one repo.

Using

Install npm i @gnosis.pm/dutchx-verification

Using - 2 options

  1. Component approach:
  1. HOC approach:

Type: curried function

DutchXVerificationHOC(ReactComponent<any>)(LOCALFORAGE_VERIFICATION_SETTINGS_KEYNAME, LOCALFORAGE_COOKIES_SETTINGS_KEYNAME, VerificationModalProps)

ReactComponent: any react component

LOCALFORAGE_VERIFICATION_SETTINGS_KEYNAME: string name wishing to save modal verification settings under in browser local database

LOCALFORAGE_COOKIES_SETTINGS_KEYNAME: string name wishing to save modal cookies settings under in browser local database

VerificationModalProps: object of additional props to pass into verification modal to overwrite default props (see below)

Example code:
// inside top level App.jsx for example
import React from 'react'
import { DutchXVerificationHOC } from '@gnosis.pm/dutchx-verification-react'

import AppOnlineStatusBar from './components/display/AppOnlineStatus'
import Home from './components/display/Home'
import StateProvider from './components/StateProvider'

import { LOCALFORAGE_KEYS } from './globals'

const App = () => (
    <StateProvider>       
        <AppOnlineStatusBar />
        <Home />
    </StateProvider>
)

export default DutchXVerificationHOC(App)('MyProject_VerificationSettings', 'MyProject_CookieSettings')

Issues

This is a new, WIP package so please report any issues!

License

MIT

FAQs

Package last updated on 14 May 2019

Did you know?

Socket

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.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc