Skip to content

Commit fdf64cc

Browse files
upgrade: Update to React 19 and NextJS 15. This is part 2.
1 parent 8021197 commit fdf64cc

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

app/clientPage.tsx

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -90,7 +90,7 @@ const LandingPage = ({ sessionUser, isAuthorized, postsOverview }: ServerPagePro
9090
enableBodyScroll(boxRef);
9191
}
9292
return () => {
93-
disableBodyScroll(boxRef);
93+
enableBodyScroll(boxRef);
9494
};
9595
}, [, cardLayout]);
9696

@@ -561,9 +561,9 @@ const LandingPage = ({ sessionUser, isAuthorized, postsOverview }: ServerPagePro
561561
>
562562
{posts.map((data, index) => {
563563
return (
564-
<>
565-
<Grid key={index} size={{ md: 2, lg: 3 }} />
566-
<Grid key={index} size={{ xs: 12, sm: 12, md: 8, lg: 6 }}>
564+
<Fragment key={index}>
565+
<Grid size={{ md: 2, lg: 3 }} />
566+
<Grid size={{ xs: 12, sm: 12, md: 8, lg: 6 }}>
567567
<LandingPageListCard
568568
views={views}
569569
author={data.author}
@@ -580,8 +580,8 @@ const LandingPage = ({ sessionUser, isAuthorized, postsOverview }: ServerPagePro
580580
published={data.published}
581581
/>
582582
</Grid>
583-
<Grid key={index} size={{ md: 2, lg: 3 }} />
584-
</>
583+
<Grid size={{ md: 2, lg: 3 }} />
584+
</Fragment>
585585
);
586586
})}
587587
</Grid>

0 commit comments

Comments
 (0)