Remove a lot of Box components, replace sx with style, move from npm to pnpm, etc...
This commit is contained in:
20 files changed
+2472
-3468
No files matched your search
@@ -10,8 +10,6 @@ import { getUser, delUser } from "../../utils/storage/user";
|
||||
|
||||
import "./home.module.scss";
|
||||
|
||||
import Box from "@mui/material/Box";
|
||||
|
||||
import Carousel from "../../components/carousel";
|
||||
|
||||
// Custom Components
|
||||
@@ -207,12 +205,12 @@ const Home = () => {
|
||||
|
||||
return (
|
||||
<>
|
||||
<Box
|
||||
<div
|
||||
component="main"
|
||||
className="scrollY home"
|
||||
sx={{
|
||||
style={{
|
||||
flexGrow: 1,
|
||||
pb: 3,
|
||||
paddingBottom: "3em",
|
||||
position: "relative",
|
||||
}}
|
||||
>
|
||||
@@ -243,10 +241,10 @@ const Home = () => {
|
||||
}}
|
||||
/>
|
||||
)}
|
||||
<Box
|
||||
<div
|
||||
className="padded-container"
|
||||
sx={{
|
||||
px: 3,
|
||||
style={{
|
||||
padding: "3em",
|
||||
}}
|
||||
>
|
||||
{libraries.isLoading ? (
|
||||
@@ -503,8 +501,8 @@ const Home = () => {
|
||||
/>
|
||||
);
|
||||
})}
|
||||
</Box>
|
||||
</Box>
|
||||
</div>
|
||||
</div>
|
||||
</>
|
||||
);
|
||||
};
|
||||
|
||||
@@ -510,7 +510,6 @@ const ItemDetail = () => {
|
||||
let videos = item.data.MediaStreams.filter(
|
||||
filterMediaStreamVideo,
|
||||
);
|
||||
console.log(videos);
|
||||
let audios = item.data.MediaStreams.filter(
|
||||
filterMediaStreamAudio,
|
||||
);
|
||||
@@ -521,10 +520,6 @@ const ItemDetail = () => {
|
||||
setVideoTracks(videos);
|
||||
setAudioTracks(audios);
|
||||
setSubtitleTracks(subs);
|
||||
|
||||
setCurrentVideoTrack(videos[0]?.Index);
|
||||
setCurrentAudioTrack(audios[0]?.Index);
|
||||
setCurrentSubTrack(subs[0]?.Index);
|
||||
}
|
||||
}, [item.isSuccess]);
|
||||
|
||||
|
||||
Reference in new issue
Block a user