Skip to content

Commit

Permalink
Merge branch 'ohcnetwork:develop' into issues/9043/sidebar-collapse-test
Browse files Browse the repository at this point in the history
  • Loading branch information
Alok authored Nov 27, 2024
2 parents 6383d75 + 3e19607 commit a68e1b7
Show file tree
Hide file tree
Showing 4 changed files with 26 additions and 26 deletions.
1 change: 1 addition & 0 deletions .gitattributes
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
* text=auto
2 changes: 1 addition & 1 deletion package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

3 changes: 0 additions & 3 deletions src/components/Facility/ConsultationDetails/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -397,9 +397,6 @@ export const ConsultationDetails = (props: any) => {
</div>
<SelectedTab {...consultationTabProps} />
</div>
<div className="px-3 pb-3 md:px-6 md:pb-6">
<SelectedTab {...consultationTabProps} />
</div>
</div>

<DoctorVideoSlideover
Expand Down
46 changes: 24 additions & 22 deletions src/components/Users/UserProfile.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,6 @@ import request from "@/Utils/request/request";
import uploadFile from "@/Utils/request/uploadFile";
import useQuery from "@/Utils/request/useQuery";
import {
classNames,
dateQueryString,
formatDate,
formatDisplayName,
Expand Down Expand Up @@ -1006,31 +1005,34 @@ export default function UserProfile() {
</p>
</div>
</div>
{updateStatus.isUpdateAvailable && (
<UpdatableApp silentlyAutoUpdate={false}>
<ButtonV2 disabled={true}>
<div className="mt-5 md:col-span-2 md:mt-0">
{updateStatus.isChecking ? (
// While checking for updates
<ButtonV2 disabled>
<div className="flex items-center gap-4">
<CareIcon icon="l-exclamation" className="text-2xl" />
{t("update_available")}
<CareIcon icon="l-sync" className="text-2xl animate-spin" />
{t("checking_for_update")}
</div>
</ButtonV2>
</UpdatableApp>
)}
<div className="mt-5 md:col-span-2 md:mt-0">
{!updateStatus.isUpdateAvailable && (
<ButtonV2 disabled={updateStatus.isChecking} onClick={checkUpdates}>
{" "}
) : updateStatus.isUpdateAvailable ? (
// When an update is available
<UpdatableApp silentlyAutoUpdate={false}>
<ButtonV2 disabled>
<div className="flex items-center gap-4">
<CareIcon
icon="l-exclamation"
className="text-2xl text-warning"
/>
{t("update_available")}
</div>
</ButtonV2>
</UpdatableApp>
) : (
// Default state to check for updates
<ButtonV2 onClick={checkUpdates}>
<div className="flex items-center gap-4">
<CareIcon
icon="l-sync"
className={classNames(
"text-2xl",
updateStatus.isChecking && "animate-spin",
)}
/>
{updateStatus.isChecking
? t("checking_for_update")
: t("check_for_update")}
<CareIcon icon="l-sync" className="text-2xl" />
{t("check_for_update")}
</div>
</ButtonV2>
)}
Expand Down

0 comments on commit a68e1b7

Please sign in to comment.