refactor: refactor foundation

This commit is contained in:
2026-08-14 09:43:19 +03:00
parent 2e32d226d3
commit da585b157a
54 changed files with 4822 additions and 535 deletions
+1 -6
View File
@@ -1,6 +1 @@
export {
NotFoundPage,
NotFoundPageEmpty,
NotFoundPageError,
NotFoundPageLoading,
} from "./ui/NotFoundPage";
export { NotFoundPage } from "./ui/NotFoundPage";
+2 -24
View File
@@ -1,7 +1,7 @@
import { Stack, Title } from "@mantine/core";
import { useTranslation } from "react-i18next";
import { Link } from "react-router";
import { Button, StateView } from "../../../shared/ui/StateView";
import { Button, StateView } from "@/shared/ui";
export function NotFoundPage() {
const { t } = useTranslation();
@@ -13,29 +13,7 @@ export function NotFoundPage() {
);
}
export function NotFoundPageLoading() {
const { t } = useTranslation();
return (
<StateView
loading
title={t("states.loadingTitle")}
text={t("states.loadingText")}
/>
);
}
export function NotFoundPageError() {
const { t } = useTranslation();
return (
<StateView
error
title={t("states.errorTitle")}
text={t("states.errorText")}
/>
);
}
export function NotFoundPageEmpty() {
function NotFoundPageEmpty() {
const { t } = useTranslation();
return (
<StateView