0.0.17 • Published 6 years ago

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

Weekly downloads
-
License
BSD-3-Clause
Repository
github
Last release
6 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

6 years ago

0.0.16

6 years ago

0.0.15

6 years ago

0.0.14

7 years ago

0.0.13

7 years ago

0.0.12

7 years ago

0.0.11

7 years ago

0.0.10

7 years ago

0.0.9

7 years ago

0.0.8

7 years ago

0.0.7

7 years ago

0.0.6

7 years ago

0.0.5

7 years ago

0.0.4

7 years ago

0.0.3

7 years ago

0.0.2

7 years ago

0.0.1

7 years ago