1- import { launchWorkspace } from " @openmrs/esm-framework" ;
2- import React , { useCallback } from " react" ;
3- import { useTranslation } from " react-i18next" ;
4- import styles from " ./death-notification-actions.scss" ;
1+ import { launchWorkspace } from ' @openmrs/esm-framework' ;
2+ import React , { useCallback } from ' react' ;
3+ import { useTranslation } from ' react-i18next' ;
4+ import styles from ' ./death-notification-actions.scss' ;
55
6-
7- const DeathNotificationActionsButton : React . FC = ( ) => {
8- const { t } = useTranslation ( ) ;
6+ const DeathNotificationActionsButton : React . FC = ( ) => {
7+ const { t } = useTranslation ( ) ;
98
109 const handleLaunchWorkspace = useCallback ( ( ) => {
11- launchWorkspace ( 'patient-form-entry-workspace' , {
12- formInfo : {
13- formUuid : 'bb282ac8-d8b6-4d76-88b9-86da83efec41' ,
14- } ,
15- workspaceTitle : 'Notification and Certification of Death' ,
16- } ) ;
17- } , [ ] ) ;
18-
10+ launchWorkspace ( 'patient-form-entry-workspace' , {
11+ formInfo : {
12+ formUuid : 'bb282ac8-d8b6-4d76-88b9-86da83efec41' ,
13+ } ,
14+ workspaceTitle : 'Notification and Certification of Death' ,
15+ } ) ;
16+ } , [ ] ) ;
1917
2018 return (
2119 < li className = "cds--overflow-menu-options__option" >
2220 < button
2321 className = { `cds--overflow-menu-options__btn ${ styles . markDeadButton } ` }
2422 role = "menuitem"
25- title = { t ( 'markDead ' , 'Mark Dead ' ) }
23+ title = { t ( 'markPatientDeceased ' , 'Mark Patient Deceased ' ) }
2624 data-floating-menu-primary-focus
2725 onClick = { ( ) => handleLaunchWorkspace ( ) }
2826 >
29- < span className = "cds--overflow-menu-options__option-content" > { t ( 'markDead' , 'Mark Dead' ) } </ span >
27+ < span className = "cds--overflow-menu-options__option-content" >
28+ { t ( 'markPatientDeceased' , 'Mark Patient Deceased' ) }
29+ </ span >
3030 </ button >
3131 </ li >
3232 ) ;
33- }
33+ } ;
3434
35- export default DeathNotificationActionsButton ;
35+ export default DeathNotificationActionsButton ;
0 commit comments