refactor: refactor foundation
This commit is contained in:
@@ -1,9 +1,8 @@
|
||||
import { Button, Stack, Title } from "@mantine/core";
|
||||
import { useTranslation } from "react-i18next";
|
||||
import { useNavigate } from "react-router";
|
||||
import { useAuth } from "../../../features/auth";
|
||||
import { TbankConnectionSection } from "../../../features/tbank-connection";
|
||||
import { StateView } from "../../../shared/ui/StateView";
|
||||
import { useAuth } from "@/features/auth";
|
||||
import { TbankConnectionSection } from "@/features/tbank-connection";
|
||||
|
||||
export function SettingsPage() {
|
||||
const { t } = useTranslation();
|
||||
@@ -24,32 +23,3 @@ export function SettingsPage() {
|
||||
</Stack>
|
||||
);
|
||||
}
|
||||
|
||||
export function SettingsPageLoading() {
|
||||
const { t } = useTranslation();
|
||||
return (
|
||||
<StateView
|
||||
loading
|
||||
title={t("states.loadingTitle")}
|
||||
text={t("states.loadingText")}
|
||||
/>
|
||||
);
|
||||
}
|
||||
|
||||
export function SettingsPageError() {
|
||||
const { t } = useTranslation();
|
||||
return (
|
||||
<StateView
|
||||
error
|
||||
title={t("states.errorTitle")}
|
||||
text={t("states.errorText")}
|
||||
/>
|
||||
);
|
||||
}
|
||||
|
||||
export function SettingsPageEmpty() {
|
||||
const { t } = useTranslation();
|
||||
return (
|
||||
<StateView title={t("states.emptyTitle")} text={t("states.emptyText")} />
|
||||
);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user