refactor: move more components to ts

This commit is contained in:
Prayag Prajapati committed 2024-12-03 19:01:17 +05:30
1 parent e049ce9ad6
commit 97526e29b4
12 files changed
+180 -267

No files matched your search

+34
View File
@@ -0,0 +1,34 @@
import Skeleton from "@mui/material/Skeleton";
import Typography from "@mui/material/Typography";
import React from "react";
export const CardsSkeleton = () => {
return (
<div
style={{
display: "flex",
flexFlow: "column",
marginBottom: "2em",
}}
>
<Typography variant="h3" sx={{ mb: "0.15em" }}>
<Skeleton width="35%" />
</Typography>
<div className="flex flex-align-center" style={{ height: "17em" }}>
{Array.from({ length: 12 }).map((_, index) => (
<Skeleton
height="26em"
sx={{
flex: "1 0 12.45%",
marginRight: "1.5em",
borderRadius: "10px",
animationDelay: `${index * 0.25}s`,
}}
// biome-ignore lint/suspicious/noArrayIndexKey: This is a skeleton component
key={index}
/>
))}
</div>
</div>
);
};