Skip to content

Commit 4c1751f

Browse files
authored
Changing the naming of the mark dead action button (#324)
1 parent a6b70d8 commit 4c1751f

File tree

2 files changed

+20
-20
lines changed

2 files changed

+20
-20
lines changed
Lines changed: 19 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -1,35 +1,35 @@
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;

packages/esm-patient-queues-app/src/index.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ import endVisitConfirmationModalComponent from './active-visits/end-visit/end-vi
2626

2727
import endVisitActionButtonComponent from './active-visits/end-visit/end-visit-action-button.component';
2828

29-
import deathNotificationActionsButtonComponent from './components/actions/death/death-notification-actions-button.component'
29+
import deathNotificationActionsButtonComponent from './components/actions/death/death-notification-actions-button.component';
3030

3131
export const importTranslation = require.context('../translations', false, /.json$/, 'lazy');
3232

0 commit comments

Comments
 (0)