-
Notifications
You must be signed in to change notification settings - Fork 23
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: [DHIS2-12362][DHIS2-12455] View and filter relationships (#3241)
Co-authored-by: jasminenguyennn <[email protected]> Co-authored-by: JasmineNg <[email protected]> Co-authored-by: Joakim Storløkken Melseth <[email protected]>
- Loading branch information
1 parent
5eefb06
commit 438d2cd
Showing
90 changed files
with
2,509 additions
and
163 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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -207,3 +207,4 @@ export const openEnrollmentPageEpic = (action$: InputObservable, store: ReduxSto | |
}, | ||
), | ||
); | ||
|
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
21 changes: 21 additions & 0 deletions
21
...ages/EnrollmentEditEvent/AddRelationshipRefWrapper/AddRelationshipRefWrapper.component.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,21 @@ | ||
// @flow | ||
import React, { useEffect, useRef } from 'react'; | ||
|
||
type Props = { | ||
setRelationshipRef: (HTMLDivElement) => void, | ||
} | ||
|
||
export const AddRelationshipRefWrapper = ({ setRelationshipRef }: Props) => { | ||
const renderRelationshipRef = useRef<?HTMLDivElement>(undefined); | ||
|
||
// Extracting the logic to separate component because of the OrgUnitFetcher | ||
useEffect(() => { | ||
if (renderRelationshipRef.current) { | ||
setRelationshipRef(renderRelationshipRef.current); | ||
} | ||
}, [setRelationshipRef]); | ||
|
||
return ( | ||
<div ref={renderRelationshipRef} /> | ||
); | ||
}; |
3 changes: 3 additions & 0 deletions
3
...ules/capture-core/components/Pages/EnrollmentEditEvent/AddRelationshipRefWrapper/index.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,3 @@ | ||
// @flow | ||
|
||
export { AddRelationshipRefWrapper } from './AddRelationshipRefWrapper.component'; |
Oops, something went wrong.