Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix(api): fix typo #826

Merged
merged 5 commits into from
Jul 11, 2024
Merged
Show file tree
Hide file tree
Changes from 1 commit
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
Prev Previous commit
fix(web-ui): update blog post skeleton style
  • Loading branch information
Johan Book authored and Johan Book committed Jul 11, 2024
commit 4356419fa2726003a4aa05b1a3a4dddcf23c2455
Original file line number Diff line number Diff line change
Expand Up @@ -50,6 +50,10 @@ export function BlogPostListPageContainer(): ReactElement {
if (isPending) {
return (
<BlogPostListPageNav>
<Box sx={{ py: 2, px: 2 }}>
<BlogPostForm />
</Box>

<BlogPostListPageSkeleton />
</BlogPostListPageNav>
);
Expand Down
Original file line number Diff line number Diff line change
@@ -1,36 +1,28 @@
import { ReactElement } from "react";

import { Box, Card, Skeleton } from "@mui/material";

import { BlogPostForm } from "../../components/BlogPostForm";
import { Box, Skeleton } from "@mui/material";

export function BlogPostListPageSkeleton(): ReactElement {
const skeletons = [100, 200, 110, 170, 50, 90];

return (
<>
<Box sx={{ paddingBottom: 2, paddingTop: 2 }}>
<BlogPostForm />
</Box>

{skeletons.map((width) => (
<Card
key={width}
sx={{ marginBottom: 2, padding: 2 }}
variant="outlined"
>
<Box sx={{ alignItems: "center", display: "flex", paddingBottom: 2 }}>
<Box key={width} sx={{ py: 2, borderTop: 1, borderColor: "divider" }}>
<Box sx={{ alignItems: "center", display: "flex", pb: 2, pl: 2 }}>
<Skeleton height={40} variant="circular" width={40} />

<Box sx={{ flexGrow: 1, paddingLeft: 1 }}>
<Skeleton width={width} />
</Box>
</Box>

<Skeleton />
<Box sx={{ px: 2 }}>
<Skeleton />
</Box>

<Skeleton height={100} sx={{ padding: 1 }} />
</Card>
<Skeleton height={140} />
</Box>
))}
</>
);
Expand Down
Loading