From ad6b450497fcbfd0664c6796bcad668f677248b8 Mon Sep 17 00:00:00 2001 From: Andrew <155891765+sruenwg@users.noreply.github.com> Date: Thu, 6 Feb 2025 13:43:06 -0800 Subject: [PATCH] refactor(web): migrate to MUI Grid v2 (#679) --- .../web/src/components/Templates/ClipList.tsx | 6 +++--- .../web/src/components/Templates/Livestreams.tsx | 10 +++------- service/vspo-schedule/web/src/pages/freechat.tsx | 6 +++--- 3 files changed, 9 insertions(+), 13 deletions(-) diff --git a/service/vspo-schedule/web/src/components/Templates/ClipList.tsx b/service/vspo-schedule/web/src/components/Templates/ClipList.tsx index c33581d9..b7f20779 100644 --- a/service/vspo-schedule/web/src/components/Templates/ClipList.tsx +++ b/service/vspo-schedule/web/src/components/Templates/ClipList.tsx @@ -1,5 +1,5 @@ import React, { useState } from "react"; -import { Grid, Box, Pagination } from "@mui/material"; +import { Box, Grid2 as Grid, Pagination } from "@mui/material"; import { Clip } from "@/types/streaming"; import { ClipCard } from "../Elements"; @@ -22,9 +22,9 @@ export const ClipList: React.FC = ({ clips }) => { return ( <> - + {paginatedClips.map((clip) => ( - + ))} diff --git a/service/vspo-schedule/web/src/components/Templates/Livestreams.tsx b/service/vspo-schedule/web/src/components/Templates/Livestreams.tsx index 7f0e7ee1..2faffb11 100644 --- a/service/vspo-schedule/web/src/components/Templates/Livestreams.tsx +++ b/service/vspo-schedule/web/src/components/Templates/Livestreams.tsx @@ -5,7 +5,7 @@ import { AccordionSummary, Avatar, Box, - Grid, + Grid2 as Grid, Typography, } from "@mui/material"; import { styled } from "@mui/material/styles"; @@ -223,14 +223,10 @@ export const LivestreamCards: React.FC = ({ }} > {label} - + {livestreams.map((livestream) => ( = ({ freechats }) => { return ( - + {freechats.map((freechat) => ( - + ))}