Introducing Socket Firewall: Free, Proactive Protection for Your Software Supply Chain.Learn More
Socket
Book a DemoInstallSign in
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

latest
Source
npmnpm
Version
0.2.0
Version published
Maintainers
12
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

  • Component approach:
  • 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