@opensrp/team-assignment
v0.0.6
Published
Contains team assignment page
Downloads
20
Readme
Team Assignment
This package contains components that list locations and their assigned teams, update and create new assigmnents.
Installation
yarn add @opensrp/team-assignment
Usage
Tean Assignment ListView
This component allows assigning teams to locations from the admin panel. To add the team assignment list view component:
import { TeamAssignmentView } from '@opensrp/team-assignment';
export const teamAssignmentProps = {
opensrpBaseURL: 'https://opensrp-stage.smartregister.org/opensrp/rest'
defaultPlanId: `<insert default plan id set in env>`,
};
<Route path={`/team-assignment`}>
<TeamAssignmentView {...teamAssignmentProps} />
</Route>
opensrpBaseURL:(string)
- required
- Opensrp API base URL
defaultPlanId:(string)
- required
- Opensrp default plan id which is an env var