Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
13 changes: 8 additions & 5 deletions frontends/main/src/app-pages/HomePage/NewsEventsSection.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import {
styled,
theme,
Typography,
Grid,
Grid2,
Card,
TypographyProps,
} from "ol-components"
Expand Down Expand Up @@ -286,19 +286,22 @@ const NewsEventsSection: React.FC = () => {
<Typography component="h3" variant="h4">
Stories
</Typography>
<Grid container columnSpacing="24px" rowSpacing="28px">
<Grid2 container columnSpacing="24px" rowSpacing="28px">
{stories.map((item, index) => (
<Grid item key={item.id} xs={12} sm={12} md={6} lg={4} xl={4}>
<Grid2
key={item.id}
size={{ xs: 12, sm: 12, md: 6, lg: 4, xl: 4 }}
>
{index >= 4 ? (
<AboveLgOnly>
<Story item={item as NewsFeedItem} mobile={false} />
</AboveLgOnly>
) : (
<Story item={item as NewsFeedItem} mobile={false} />
)}
</Grid>
</Grid2>
))}
</Grid>
</Grid2>
</StoriesContainer>
<EventsContainer>
<Typography component="h3" variant="h4">
Expand Down
2 changes: 2 additions & 0 deletions frontends/ol-components/src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -77,6 +77,8 @@ export type { DrawerProps } from "@mui/material/Drawer"

export { default as Grid } from "@mui/material/Grid"
export type { GridProps } from "@mui/material/Grid"
export { default as Grid2 } from "@mui/material/Grid2"
export type { Grid2Props } from "@mui/material/Grid2"
export { default as InputLabel } from "@mui/material/InputLabel"

export { default as List } from "@mui/material/List"
Expand Down
Loading