Files
frontend/src/pages/account-operations/ui/AccountOperationsPage/components/AccountOperationsPageLoading.view.tsx
T
ksv741 a4046dbe87
Frontend verify / commits (pull_request) Successful in 29s
Frontend verify / security (pull_request) Successful in 9s
Frontend verify / verify (pull_request) Successful in 8m54s
Frontend verify / commits (push) Skipped
Frontend verify / security (push) Successful in 12s
Frontend verify / verify (push) Successful in 9m59s
refactor: address frontend review feedback
2026-09-28 19:20:32 +03:00

38 lines
906 B
TypeScript

import type { FC } from "react";
import { Group, Skeleton, Stack } from "@mantine/core";
import { LoadingSkeleton } from "@wealthledger/ui";
import { useTranslation } from "react-i18next";
const skeletonRowIds = ["first", "second", "third", "fourth"];
const AccountOperationsPageLoading: FC = () => {
const { t } = useTranslation();
return (
<LoadingSkeleton label={t("states.loadingTitle")}>
<Skeleton height={32} width="40%" />
<Group grow>
<Skeleton height={48} radius="sm" />
<Skeleton height={48} radius="sm" />
</Group>
<Skeleton height={48} radius="sm" />
<Group>
<Skeleton height={36} radius="sm" width={110} />
<Skeleton height={36} radius="sm" width={110} />
</Group>
<Stack gap="xs">
{skeletonRowIds.map(id => <Skeleton height={64} key={id} radius="md" />)}
</Stack>
</LoadingSkeleton>
);
};
export { AccountOperationsPageLoading };