@hisp-amr/org-unit-tree

0.0.17 • Public • Published

org-unit-tree

Installation

yarn add @hisp-amr/org-unit-tree
# or
npm i @hisp-amr/org-unit-tree

Usage

REACT_APP_DHIS2_BASE_URL needs to be set.

# [root_dir]/.env.development
REACT_APP_DHIS2_BASE_URL=https://amrtest.icmr.org.in/amr
# [root_dir]/.env.production
REACT_APP_DHIS2_BASE_URL=../../..
import React from 'react'
import { OrgUnitTree } from '@hisp-amr/org-unit-tree'

const onError = error => console.error(error)
const onSelect = selected => console.log(selected)

const App = () => (
    <>
        {/* Other components */}
        <OrgUnitTree
            onSelect={onSelect}
            onError={onError}
        />
    </>
)

Readme

Keywords

none

Package Sidebar

Install

npm i @hisp-amr/org-unit-tree

Weekly Downloads

1

Version

0.0.17

License

BSD-3-Clause

Unpacked Size

21.9 kB

Total Files

18

Last publish

Collaborators

  • harsh-atal
  • teug91