Conventional commits / commits (pull_request) Successful in 24s
Frontend security / security (pull_request) Successful in 9s
Frontend verify / verify (pull_request) Successful in 5m18s
Frontend security / security (push) Successful in 10s
Frontend verify / verify (push) Successful in 6m45s
OpenSpec change: evolve-frontend-stack
21 lines
554 B
TypeScript
21 lines
554 B
TypeScript
import { Button } from "@mantine/core";
|
|
import { StateView } from "@wealthledger/ui";
|
|
import type { FC } from "react";
|
|
import { useTranslation } from "react-i18next";
|
|
|
|
type AccountEventsPageErrorProps = { retry: () => void };
|
|
|
|
const AccountEventsPageError: FC<AccountEventsPageErrorProps> = (props) => {
|
|
const { t } = useTranslation();
|
|
return (
|
|
<StateView
|
|
error
|
|
title={t("events.errorTitle")}
|
|
text={t("events.errorText")}
|
|
action={<Button onClick={props.retry}>{t("events.retry")}</Button>}
|
|
/>
|
|
);
|
|
};
|
|
|
|
export { AccountEventsPageError };
|