forked from openmrs/openmrs-esm-patient-registration
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Added Edit Patient Details Button in the Patient Actions Menu
- Loading branch information
1 parent
2c89a66
commit 18d7e73
Showing
2 changed files
with
24 additions
and
0 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
import React from 'react'; | ||
import { ConfigurableLink } from '@openmrs/esm-framework'; | ||
import { useTranslation } from 'react-i18next'; | ||
|
||
export default function EditPatientDetailsButton({ patientUuid }) { | ||
const { t } = useTranslation(); | ||
return ( | ||
<li className="bx--overflow-menu-options__option"> | ||
<ConfigurableLink | ||
to={`\${openmrsSpaBase}/patient/${patientUuid}/edit`} | ||
className="bx--overflow-menu-options__btn" | ||
title={t('Edit Patient Details', 'Edit Patient Details')}> | ||
<span className="bx--overflow-menu-options__option-content"> | ||
{t('Edit Patient Details', 'Edit Patient Details')} | ||
</span> | ||
</ConfigurableLink> | ||
</li> | ||
); | ||
} |