0.0.17 • Published 5 years ago

@hisp-amr/org-unit-tree v0.0.17

Weekly downloads
-
License
BSD-3-Clause
Repository
github
Last release
5 years ago

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}
        />
    </>
)
0.0.17

5 years ago

0.0.16

5 years ago

0.0.15

5 years ago

0.0.14

5 years ago

0.0.13

5 years ago

0.0.12

5 years ago

0.0.11

5 years ago

0.0.10

5 years ago

0.0.9

5 years ago

0.0.8

5 years ago

0.0.7

5 years ago

0.0.6

5 years ago

0.0.5

5 years ago

0.0.4

5 years ago

0.0.3

5 years ago

0.0.2

5 years ago

0.0.1

5 years ago