Skip to content

Commit 86c5580

Browse files
johanbookJohan Book
and
Johan Book
authored
feat(web-ui): improve profile page skeleton (#796)
Co-authored-by: Johan Book <{ID}+{username}@users.noreply.github.com>
1 parent e74cf62 commit 86c5580

File tree

1 file changed

+10
-11
lines changed

1 file changed

+10
-11
lines changed
Original file line numberDiff line numberDiff line change
@@ -1,24 +1,23 @@
1-
import React from "react";
1+
import { ReactElement } from "react";
22

3-
import { Skeleton, Typography } from "@mui/material";
3+
import { Skeleton } from "@mui/material";
44

55
import { Center } from "src/components/ui/Center";
6-
import { useTranslation } from "src/core/i18n";
7-
8-
export function ProfilePageSkeleton(): React.ReactElement {
9-
const { t } = useTranslation("profile");
106

7+
export function ProfilePageSkeleton(): ReactElement {
118
return (
129
<>
1310
<Center>
14-
<Skeleton height={200} variant="circular" width={200} />
11+
<Skeleton height={160} variant="circular" width={160} />
1512
</Center>
1613

17-
<Typography gutterBottom sx={{ paddingTop: 2 }} variant="h5">
18-
{t("description.title")}
19-
</Typography>
14+
<Center>
15+
<Skeleton height={60} width={120} />
16+
</Center>
2017

21-
<Skeleton height={200} />
18+
<Center>
19+
<Skeleton height={60} width={240} />
20+
</Center>
2221
</>
2322
);
2423
}

0 commit comments

Comments
 (0)