Skip to content

xave-finance/xave-ui-kit

Repository files navigation

xave-ui-kit

Xave custom UI library

NPM JavaScript Style Guide

Install

npm install --save xave-ui-kit

Usage

Geofence

import * as React from 'react'

import { GeofenceCountry, useGeofence }  from 'xave-ui-kit'

const Example = () => {
  const { loading, rejected } = useGeofence(GeofenceCountry.SINGAPORE);
  if (loading) {
    return (
      <div>
        Loaded
      </div>
    );
  } else if (!loading && rejected) {
    return (
       <div>
        Blocked Content
      </div>
    );
  }
}

License

MIT © xave-finance


This hook is created using create-react-hook.