diff --git a/src/pages/currencies/currencyRatesCreate/index.tsx b/src/pages/currencies/currencyRatesCreate/index.tsx index 879d8eb..343f79a 100644 --- a/src/pages/currencies/currencyRatesCreate/index.tsx +++ b/src/pages/currencies/currencyRatesCreate/index.tsx @@ -9,7 +9,7 @@ export default function CurrencyRateCreatePage() { const { t } = useTranslation() return ( -
+

{t('currencyRates.actions.create', 'Walýuta kursy dörediň')} diff --git a/src/pages/currencies/currencyRatesEdit/index.tsx b/src/pages/currencies/currencyRatesEdit/index.tsx index 6a70100..cd744fb 100644 --- a/src/pages/currencies/currencyRatesEdit/index.tsx +++ b/src/pages/currencies/currencyRatesEdit/index.tsx @@ -27,7 +27,7 @@ export default function CurrencyRateEditPage() { if (!rate) { return ( -
+

{t('currencyRates.notFound', 'Walýuta kursy tapylmady')}

diff --git a/src/pages/currencies/visaMasterSberSettingsCreate/index.tsx b/src/pages/currencies/visaMasterSberSettingsCreate/index.tsx index cbc31de..968f152 100644 --- a/src/pages/currencies/visaMasterSberSettingsCreate/index.tsx +++ b/src/pages/currencies/visaMasterSberSettingsCreate/index.tsx @@ -9,7 +9,7 @@ export default function VisaMasterSettingCreatePage() { const { t } = useTranslation() return ( -
+

diff --git a/src/pages/currencies/visaMasterSberSettingsEdit/index.tsx b/src/pages/currencies/visaMasterSberSettingsEdit/index.tsx index fddd3c7..ee05d9a 100644 --- a/src/pages/currencies/visaMasterSberSettingsEdit/index.tsx +++ b/src/pages/currencies/visaMasterSberSettingsEdit/index.tsx @@ -38,7 +38,7 @@ export default function VisaMasterSettingEditPage() { // ─── Render ─────────────────────────────────────────────────────────────── return ( -
+

diff --git a/src/pages/settings/loan/loanTypesCreate/index.tsx b/src/pages/settings/loan/loanTypesCreate/index.tsx index b214cb2..c08102a 100644 --- a/src/pages/settings/loan/loanTypesCreate/index.tsx +++ b/src/pages/settings/loan/loanTypesCreate/index.tsx @@ -7,7 +7,7 @@ export default function LoanTypeCreatePage() { const { t } = useTranslation() return ( -
+

diff --git a/src/pages/settings/loan/loanTypesEdit/index.tsx b/src/pages/settings/loan/loanTypesEdit/index.tsx index 04484ad..4316ac9 100644 --- a/src/pages/settings/loan/loanTypesEdit/index.tsx +++ b/src/pages/settings/loan/loanTypesEdit/index.tsx @@ -14,7 +14,7 @@ export default function LoanTypeEditPage() { const { data, isLoading, isError } = useGetLoanTypeById(loanTypeId) return ( -
+

{isLoading diff --git a/src/pages/settings/loan/requiredDocumentsCreate/index.tsx b/src/pages/settings/loan/requiredDocumentsCreate/index.tsx index ed45d11..5bb0f53 100644 --- a/src/pages/settings/loan/requiredDocumentsCreate/index.tsx +++ b/src/pages/settings/loan/requiredDocumentsCreate/index.tsx @@ -5,7 +5,7 @@ export default function RequiredDocumentsCreatePage() { const { t } = useTranslation() return ( -
+

{t('loanDocuments.createBtn', 'Karz gerekli resminamalary dörediň')}

diff --git a/src/pages/settings/loan/requiredDocumentsEdit/index.tsx b/src/pages/settings/loan/requiredDocumentsEdit/index.tsx index 4826b0c..1f03e87 100644 --- a/src/pages/settings/loan/requiredDocumentsEdit/index.tsx +++ b/src/pages/settings/loan/requiredDocumentsEdit/index.tsx @@ -12,7 +12,7 @@ export default function RequiredDocumentsEditPage() { const { data, isLoading, isError } = useGetRequiredDocumentById(documentId) return ( -
+

{isLoading ? t('common.loading', 'Ýüklenýär...') diff --git a/src/pages/settings/location/branchesCreate/index.tsx b/src/pages/settings/location/branchesCreate/index.tsx index 7da4f1e..7d995f2 100644 --- a/src/pages/settings/location/branchesCreate/index.tsx +++ b/src/pages/settings/location/branchesCreate/index.tsx @@ -5,7 +5,7 @@ export default function BranchCreatePage() { const { t } = useTranslation() return ( -
+
diff --git a/src/pages/settings/location/branchesEdit/index.tsx b/src/pages/settings/location/branchesEdit/index.tsx index de3e9f3..e4610a9 100644 --- a/src/pages/settings/location/branchesEdit/index.tsx +++ b/src/pages/settings/location/branchesEdit/index.tsx @@ -1,44 +1,24 @@ -import { useNavigate, useParams } from 'react-router-dom' -import { useTranslation } from 'react-i18next' -import { BranchForm } from '@/features/branches/components/branchesForm' -import { useBranchById } from '@/features/branches/hooks/useBranches' -import { Loader2 } from 'lucide-react' +import { useNavigate, useParams } from "react-router-dom"; +import { useTranslation } from "react-i18next"; +import { BranchForm } from "@/features/branches/components/branchesForm"; +import { useBranchById } from "@/features/branches/hooks/useBranches"; +import { Loader2 } from "lucide-react"; export default function BranchEditPage() { - const { id } = useParams<{ id: string }>() - const navigate = useNavigate() - const { t } = useTranslation() + const { id } = useParams<{ id: string }>(); + const navigate = useNavigate(); + const { t } = useTranslation(); - const numericId = Number(id) - const { data, isLoading, isError } = useBranchById(numericId) + const numericId = Number(id); + const { data, isLoading, isError } = useBranchById(numericId); return ( -
+
- -

{isLoading - ? '...' - : `${t('branches.edit.title', 'Şahamçany üýtgetmek')}: ${data?.name.tk ?? ''}`} + ? "..." + : `${t("branches.edit.title", "Şahamçany üýtgetmek")}: ${data?.name.tk ?? ""}`}

@@ -49,12 +29,12 @@ export default function BranchEditPage() { ) : isError || !data ? (

- {t('common.error', 'Maglumat ýüklenilmedi. Sahypany täzeleläň.')} + {t("common.error", "Maglumat ýüklenilmedi. Sahypany täzeleläň.")}

) : ( )}
- ) + ); } diff --git a/src/pages/settings/location/districtsCreate/index.tsx b/src/pages/settings/location/districtsCreate/index.tsx index 0dd74d1..c66d83d 100644 --- a/src/pages/settings/location/districtsCreate/index.tsx +++ b/src/pages/settings/location/districtsCreate/index.tsx @@ -5,7 +5,7 @@ export default function DistrictCreatePage() { const { t } = useTranslation() return ( -
+
diff --git a/src/pages/settings/location/districtsEdit/index.tsx b/src/pages/settings/location/districtsEdit/index.tsx index 412b1a5..47412c4 100644 --- a/src/pages/settings/location/districtsEdit/index.tsx +++ b/src/pages/settings/location/districtsEdit/index.tsx @@ -11,7 +11,7 @@ export default function DistrictEditPage() { const { data, isLoading, isError } = useDistrictById(numericId) return ( -
+
diff --git a/src/pages/users/allUsersCreate/index.tsx b/src/pages/users/allUsersCreate/index.tsx index 785e312..ce0089f 100644 --- a/src/pages/users/allUsersCreate/index.tsx +++ b/src/pages/users/allUsersCreate/index.tsx @@ -7,7 +7,7 @@ export default function UserCreatePage() { const { t } = useTranslation() return ( -
+
{/* Title */}

diff --git a/src/pages/users/allUsersEdit/index.tsx b/src/pages/users/allUsersEdit/index.tsx index 1839f35..b1d1263 100644 --- a/src/pages/users/allUsersEdit/index.tsx +++ b/src/pages/users/allUsersEdit/index.tsx @@ -30,7 +30,7 @@ export default function UserEditPage() { } return ( -
+
{/* Title */} diff --git a/src/pages/users/clientsCreate/index.tsx b/src/pages/users/clientsCreate/index.tsx index d788d02..dd145b9 100644 --- a/src/pages/users/clientsCreate/index.tsx +++ b/src/pages/users/clientsCreate/index.tsx @@ -5,7 +5,7 @@ export default function ClientCreatePage() { const { t } = useTranslation() return ( -
+
{/* Page heading */} diff --git a/src/pages/users/clientsEdit/index.tsx b/src/pages/users/clientsEdit/index.tsx index a8aca47..480373a 100644 --- a/src/pages/users/clientsEdit/index.tsx +++ b/src/pages/users/clientsEdit/index.tsx @@ -11,7 +11,7 @@ export default function ClientEditPage() { const { data: client, isLoading } = useClient(clientId) return ( -
+
{/* Page heading */} diff --git a/src/pages/users/operatorsCreate/index.tsx b/src/pages/users/operatorsCreate/index.tsx index 7c5532f..1d2c1e0 100644 --- a/src/pages/users/operatorsCreate/index.tsx +++ b/src/pages/users/operatorsCreate/index.tsx @@ -7,7 +7,7 @@ export default function OperatorCreatePage() { const { t } = useTranslation() return ( -
+
{/* Page heading */}

{t('operators.createTitle', 'Operator döredin')} diff --git a/src/pages/users/operatorsEdit/index.tsx b/src/pages/users/operatorsEdit/index.tsx index 1c543e2..39bfe90 100644 --- a/src/pages/users/operatorsEdit/index.tsx +++ b/src/pages/users/operatorsEdit/index.tsx @@ -13,7 +13,7 @@ export default function OperatorEditPage() { const { data: operator, isLoading } = useOperator(operatorId) return ( -
+
{/* Page heading */}

{t('operators.editTitle', 'Operator üýtget')}: {operator?.name ?? ''}