Skip to content

Commit

Permalink
updated variants and links
Browse files Browse the repository at this point in the history
  • Loading branch information
Mahendar0701 committed Jan 5, 2025
1 parent 444a8a5 commit 031252e
Show file tree
Hide file tree
Showing 3 changed files with 25 additions and 18 deletions.
8 changes: 6 additions & 2 deletions src/CAREUI/interactive/FiltersSlideover.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -33,11 +33,15 @@ export default function FiltersSlideover({
<div className="flex items-center justify-between">
<span className="text-lg font-bold">{t("filters")}</span>
<div className="mr-2 flex items-center justify-end gap-1">
<Button variant="warning" onClick={onClear} id="clear-filter">
<Button variant="ghost" onClick={onClear} id="clear-filter">
<CareIcon icon="l-filter-slash" className="text-lg" />
<span>{t("clear")}</span>
</Button>
<Button variant="alert" onClick={onApply} id="apply-filter">
<Button
variant="outline_primary"
onClick={onApply}
id="apply-filter"
>
{t("apply")}
</Button>
</div>
Expand Down
23 changes: 13 additions & 10 deletions src/components/Common/AvatarEditModal.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -258,20 +258,23 @@ const AvatarEditModal = ({
id="upload-cover-image"
variant="primary"
type="button"
asChild
onClick={() =>
document.getElementById("file-input")?.click()
}
>
<CareIcon icon="l-cloud-upload" className="text-lg" />
{t("upload_an_image")}
<input
id="file-input"
title="changeFile"
type="file"
accept="image/*"
className="hidden"
onChange={onSelectFile}
/>
<div className="cursor-pointer">
<CareIcon icon="l-cloud-upload" className="text-lg" />
{t("upload_an_image")}
<input
id="file-input"
title="changeFile"
type="file"
accept="image/*"
className="hidden"
onChange={onSelectFile}
/>
</div>
</Button>
</div>
<Button
Expand Down
12 changes: 6 additions & 6 deletions src/components/Patient/PatientDetailsTab/patientUpdates.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -21,14 +21,14 @@ export const Updates = (props: PatientProps) => {
<div className="mt-4 px-3 md:px-0">
<div className="flex justify-between items-center mb-4">
<h2 className="text-2xl font-semibold leading-tight">{t("updates")}</h2>
<Link
href={`/facility/${facilityId}/patient/${patientId}/questionnaire`}
>
<Button variant="outline_primary">
<Button asChild variant="outline_primary">
<Link
href={`/facility/${facilityId}/patient/${patientId}/questionnaire`}
>
<CareIcon icon="l-plus" className="mr-2" />
{t("add_patient_updates")}
</Button>
</Link>
</Link>
</Button>
</div>

<PaginatedList
Expand Down

0 comments on commit 031252e

Please sign in to comment.