Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

(fix) Fix patient list side rail icon #822

Merged
merged 1 commit into from
Sep 27, 2023
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import React from 'react';
import { useTranslation } from 'react-i18next';
import { Button } from '@carbon/react';
import { Button, IconButton } from '@carbon/react';
import { Events } from '@carbon/react/icons';
import { navigate, useLayoutType } from '@openmrs/esm-framework';
import styles from './patient-list-action-button.scss';
Expand All @@ -21,18 +21,15 @@ const PatientListActionButton: React.FC = () => {
}

return (
<Button
<IconButton
align="left"
className={styles.container}
onClick={navigateToPatientList}
kind="ghost"
renderIcon={(props) => <Events size={20} {...props} />}
hasIconOnly
iconDescription={t('patientLists', 'Patient lists')}
enterDelayMs={1000}
tooltipAlignment="center"
tooltipPosition="left"
size="sm"
/>
kind="ghost"
label={t('patientLists', 'Patient lists')}
onClick={navigateToPatientList}>
<Events size={20} />
</IconButton>
);
};

Expand Down
Loading