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

Show no information card if consultation and sample test history list is empty #7502

Merged
14 changes: 14 additions & 0 deletions src/Components/Patient/PatientHome.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -1399,6 +1399,13 @@ export const PatientHome = (props: any) => {
<PaginatedList.WhenLoading>
<CircularProgress />
</PaginatedList.WhenLoading>
<PaginatedList.WhenEmpty className="py-2">
<div className="h-full space-y-2 rounded-lg bg-white p-7 shadow">
<div className="flex w-full items-center justify-center text-xl font-bold text-gray-500">
No Consultation History Available
</div>
</div>
</PaginatedList.WhenEmpty>
<PaginatedList.Items<ConsultationModel>>
{(item) => (
<ConsultationCard
Expand Down Expand Up @@ -1432,6 +1439,13 @@ export const PatientHome = (props: any) => {
<PaginatedList.WhenLoading>
<CircularProgress />
</PaginatedList.WhenLoading>
<PaginatedList.WhenEmpty className="py-2">
<div className="h-full space-y-2 rounded-lg bg-white p-7 shadow">
<div className="flex w-full items-center justify-center text-xl font-bold text-gray-500">
No Sample Test History Available
</div>
</div>
</PaginatedList.WhenEmpty>
<PaginatedList.Items<SampleTestModel>>
{(item) => (
<SampleTestCard
Expand Down
Loading