-
Notifications
You must be signed in to change notification settings - Fork 22
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: DHIS2-10321 adds View Dashboard button on duplicates modal (#1496)
* feat: adds button * chore: space
- Loading branch information
1 parent
55b7314
commit 14058b1
Showing
19 changed files
with
189 additions
and
138 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
36 changes: 36 additions & 0 deletions
36
src/core_modules/capture-core/components/CardList/CardList.types.js
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,36 @@ | ||
// @flow | ||
import { type Node } from 'react'; | ||
import { typeof enrollmentTypes } from './CardList.constants'; | ||
|
||
export type Tei = $ReadOnly<{ | ||
created: string, | ||
orgUnit: string, | ||
trackedEntityInstance: string, | ||
lastUpdated: string, | ||
trackedEntityType: string, | ||
deleted: boolean, | ||
featureType: string, | ||
programOwners: Array<any>, | ||
enrollments: Array<any>, | ||
relationships: ?Array<any>, | ||
orgUnit: string, | ||
attributes: Array<{ | ||
lastUpdated: string, | ||
code: string, | ||
displayName: string, | ||
created: string, | ||
valueType: string, | ||
attribute: string, | ||
value: string | ||
}> | ||
}> | ||
|
||
export type ListItem = {| | ||
+id: string, | ||
+values: { | ||
[elementId: string]: any, | ||
}, | ||
+tei: Tei, | ||
|} | ||
|
||
export type RenderCustomCardActions = ({item: ListItem, programName?: string, enrollmentType: $Keys<enrollmentTypes>}) => Node |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.