Skip to content

Commit

Permalink
set skeleton count to resultsPerPage too
Browse files Browse the repository at this point in the history
  • Loading branch information
rajku-dev committed Feb 2, 2025
1 parent ccef985 commit 66c3284
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -309,7 +309,7 @@ export default function QuestionnaireResponsesList({
<div className="max-w-full">
{questionnaireLoading ? (
<div className="grid gap-5">
<CardListSkeleton count={3} />
<CardListSkeleton count={resultsPerPage} />
</div>
) : (
<div>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ const EncounterHistory = (props: PatientProps) => {
{encountersLoading ? (
<div>
<div className="grid gap-5">
<CardListSkeleton count={5} />
<CardListSkeleton count={resultsPerPage} />
</div>
</div>
) : (
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ export const Updates = (props: PatientProps) => {
<div className="flex flex-col gap-4">
{patientUpdatesLoading ? (
<div className="grid gap-4">
<CardListSkeleton count={7} />
<CardListSkeleton count={resultsPerPage} />
</div>
) : (
<div>
Expand Down
2 changes: 1 addition & 1 deletion src/components/Resource/ResourceCommentSection.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -86,7 +86,7 @@ const CommentSection = (props: { id: string }) => {
{commentsLoading ? (
<div>
<div className="grid gap-5">
<CardListSkeleton count={10} />
<CardListSkeleton count={resultsPerPage} />
</div>
</div>
) : (
Expand Down

0 comments on commit 66c3284

Please sign in to comment.