setShowDiscontinued(true)}
+
+
+ Scroll to view more prescriptions
+
+
+ }
+ disableOverlay={
+ loading || !prescriptions?.length || !(prescriptions?.length > 1)
+ }
>
-
-
-
- Show {discontinuedCount} discontinued
- prescription(s)
+ {loading && }
+ {prescriptions?.length === 0 && }
+
+ {!!prescriptions?.length && (
+ {
+ refetch();
+ discontinuedPrescriptions.refetch();
+ }}
+ />
+ )}
+
+ {!showDiscontinued && !!discontinuedCount && (
+ setShowDiscontinued(true)}
+ >
+
+
+
+ Show {discontinuedCount} discontinued
+ prescription(s)
+
-
-
- )}
+
+ )}
+
);
};