0.0.9 • Published 3 years ago

@opensrp/card-support v0.0.9

Weekly downloads
49
License
Apache-2.0
Repository
github
Last release
3 years ago

Card Support

This package has a set of components that are used for OpenSRP card support features

Installation

yarn add @opensrp/card-support

Code examples

Download Client Data

Download client data feature, enables the user to download client data in CSV format

Download Client Data

To make use of the download client data feature

import { DownloadClientData } from '@opensrp/card-support';


...

<Route path="/download-client-data">
  <DownloadClientData opensrpBaseURL="https://opensrp-stage.smartregister.org/opensrp/rest" />
</Route>

DownloadClientData component takes the following props:

  • opensrpBaseURL:(string)
    • required
    • Opensrp API base URL