removed some paddings
This commit is contained in:
1 parent
42b3c94a2c
commit
2f13d424e1
18 files changed
+32
-52
No files matched your search
@@ -9,7 +9,7 @@ export default function CurrencyRateCreatePage() {
|
|||||||
const { t } = useTranslation()
|
const { t } = useTranslation()
|
||||||
|
|
||||||
return (
|
return (
|
||||||
<div className="p-6">
|
<div>
|
||||||
|
|
||||||
<h1 className="text-2xl font-semibold text-foreground mb-6">
|
<h1 className="text-2xl font-semibold text-foreground mb-6">
|
||||||
{t('currencyRates.actions.create', 'Walýuta kursy dörediň')}
|
{t('currencyRates.actions.create', 'Walýuta kursy dörediň')}
|
||||||
|
|||||||
@@ -27,7 +27,7 @@ export default function CurrencyRateEditPage() {
|
|||||||
|
|
||||||
if (!rate) {
|
if (!rate) {
|
||||||
return (
|
return (
|
||||||
<div className="p-6">
|
<div>
|
||||||
<p className="text-muted-foreground">
|
<p className="text-muted-foreground">
|
||||||
{t('currencyRates.notFound', 'Walýuta kursy tapylmady')}
|
{t('currencyRates.notFound', 'Walýuta kursy tapylmady')}
|
||||||
</p>
|
</p>
|
||||||
|
|||||||
@@ -9,7 +9,7 @@ export default function VisaMasterSettingCreatePage() {
|
|||||||
const { t } = useTranslation()
|
const { t } = useTranslation()
|
||||||
|
|
||||||
return (
|
return (
|
||||||
<div className="p-6">
|
<div>
|
||||||
|
|
||||||
|
|
||||||
<h1 className="text-2xl font-semibold text-foreground mb-6">
|
<h1 className="text-2xl font-semibold text-foreground mb-6">
|
||||||
|
|||||||
@@ -38,7 +38,7 @@ export default function VisaMasterSettingEditPage() {
|
|||||||
// ─── Render ───────────────────────────────────────────────────────────────
|
// ─── Render ───────────────────────────────────────────────────────────────
|
||||||
|
|
||||||
return (
|
return (
|
||||||
<div className="p-6">
|
<div>
|
||||||
|
|
||||||
|
|
||||||
<h1 className="text-2xl font-semibold text-foreground mb-6">
|
<h1 className="text-2xl font-semibold text-foreground mb-6">
|
||||||
|
|||||||
@@ -7,7 +7,7 @@ export default function LoanTypeCreatePage() {
|
|||||||
const { t } = useTranslation()
|
const { t } = useTranslation()
|
||||||
|
|
||||||
return (
|
return (
|
||||||
<div className="p-6 max-w-3xl">
|
<div>
|
||||||
|
|
||||||
|
|
||||||
<h1 className="text-xl font-semibold text-foreground mb-5">
|
<h1 className="text-xl font-semibold text-foreground mb-5">
|
||||||
|
|||||||
@@ -14,7 +14,7 @@ export default function LoanTypeEditPage() {
|
|||||||
const { data, isLoading, isError } = useGetLoanTypeById(loanTypeId)
|
const { data, isLoading, isError } = useGetLoanTypeById(loanTypeId)
|
||||||
|
|
||||||
return (
|
return (
|
||||||
<div className="p-6 max-w-3xl">
|
<div>
|
||||||
|
|
||||||
<h1 className="text-xl font-semibold text-foreground mb-5">
|
<h1 className="text-xl font-semibold text-foreground mb-5">
|
||||||
{isLoading
|
{isLoading
|
||||||
|
|||||||
@@ -5,7 +5,7 @@ export default function RequiredDocumentsCreatePage() {
|
|||||||
const { t } = useTranslation()
|
const { t } = useTranslation()
|
||||||
|
|
||||||
return (
|
return (
|
||||||
<div className="p-6 max-w-5xl">
|
<div>
|
||||||
<h1 className="text-xl font-semibold text-foreground mb-5">
|
<h1 className="text-xl font-semibold text-foreground mb-5">
|
||||||
{t('loanDocuments.createBtn', 'Karz gerekli resminamalary dörediň')}
|
{t('loanDocuments.createBtn', 'Karz gerekli resminamalary dörediň')}
|
||||||
</h1>
|
</h1>
|
||||||
|
|||||||
@@ -12,7 +12,7 @@ export default function RequiredDocumentsEditPage() {
|
|||||||
const { data, isLoading, isError } = useGetRequiredDocumentById(documentId)
|
const { data, isLoading, isError } = useGetRequiredDocumentById(documentId)
|
||||||
|
|
||||||
return (
|
return (
|
||||||
<div className="p-6 max-w-5xl">
|
<div >
|
||||||
<h1 className="text-xl font-semibold text-foreground mb-5">
|
<h1 className="text-xl font-semibold text-foreground mb-5">
|
||||||
{isLoading
|
{isLoading
|
||||||
? t('common.loading', 'Ýüklenýär...')
|
? t('common.loading', 'Ýüklenýär...')
|
||||||
|
|||||||
@@ -5,7 +5,7 @@ export default function BranchCreatePage() {
|
|||||||
const { t } = useTranslation()
|
const { t } = useTranslation()
|
||||||
|
|
||||||
return (
|
return (
|
||||||
<div className="p-6">
|
<div >
|
||||||
<div className="mb-6">
|
<div className="mb-6">
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
@@ -1,44 +1,24 @@
|
|||||||
import { useNavigate, useParams } from 'react-router-dom'
|
import { useNavigate, useParams } from "react-router-dom";
|
||||||
import { useTranslation } from 'react-i18next'
|
import { useTranslation } from "react-i18next";
|
||||||
import { BranchForm } from '@/features/branches/components/branchesForm'
|
import { BranchForm } from "@/features/branches/components/branchesForm";
|
||||||
import { useBranchById } from '@/features/branches/hooks/useBranches'
|
import { useBranchById } from "@/features/branches/hooks/useBranches";
|
||||||
import { Loader2 } from 'lucide-react'
|
import { Loader2 } from "lucide-react";
|
||||||
|
|
||||||
export default function BranchEditPage() {
|
export default function BranchEditPage() {
|
||||||
const { id } = useParams<{ id: string }>()
|
const { id } = useParams<{ id: string }>();
|
||||||
const navigate = useNavigate()
|
const navigate = useNavigate();
|
||||||
const { t } = useTranslation()
|
const { t } = useTranslation();
|
||||||
|
|
||||||
const numericId = Number(id)
|
const numericId = Number(id);
|
||||||
const { data, isLoading, isError } = useBranchById(numericId)
|
const { data, isLoading, isError } = useBranchById(numericId);
|
||||||
|
|
||||||
return (
|
return (
|
||||||
<div className="p-6">
|
<div>
|
||||||
<div className="mb-6">
|
<div className="mb-6">
|
||||||
<nav className="flex items-center gap-2 text-sm text-muted-foreground mb-1">
|
|
||||||
<span
|
|
||||||
className="cursor-pointer hover:text-foreground transition-colors"
|
|
||||||
onClick={() => navigate('/settings/location/branches')}
|
|
||||||
>
|
|
||||||
{t('nav.settings', 'Sazlamalar')}
|
|
||||||
</span>
|
|
||||||
<span>›</span>
|
|
||||||
<span
|
|
||||||
className="cursor-pointer hover:text-foreground transition-colors"
|
|
||||||
onClick={() => navigate('/settings/location/branches')}
|
|
||||||
>
|
|
||||||
{t('branches.title', 'Şahamçalar')}
|
|
||||||
</span>
|
|
||||||
<span>›</span>
|
|
||||||
<span className="text-foreground font-medium">
|
|
||||||
{t('branches.edit.breadcrumb', 'Üýtgetmek')}
|
|
||||||
</span>
|
|
||||||
</nav>
|
|
||||||
|
|
||||||
<h1 className="text-2xl font-bold text-foreground">
|
<h1 className="text-2xl font-bold text-foreground">
|
||||||
{isLoading
|
{isLoading
|
||||||
? '...'
|
? "..."
|
||||||
: `${t('branches.edit.title', 'Şahamçany üýtgetmek')}: ${data?.name.tk ?? ''}`}
|
: `${t("branches.edit.title", "Şahamçany üýtgetmek")}: ${data?.name.tk ?? ""}`}
|
||||||
</h1>
|
</h1>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
@@ -49,12 +29,12 @@ export default function BranchEditPage() {
|
|||||||
) : isError || !data ? (
|
) : isError || !data ? (
|
||||||
<div className="flex items-center justify-center min-h-[400px]">
|
<div className="flex items-center justify-center min-h-[400px]">
|
||||||
<p className="text-sm text-destructive">
|
<p className="text-sm text-destructive">
|
||||||
{t('common.error', 'Maglumat ýüklenilmedi. Sahypany täzeleläň.')}
|
{t("common.error", "Maglumat ýüklenilmedi. Sahypany täzeleläň.")}
|
||||||
</p>
|
</p>
|
||||||
</div>
|
</div>
|
||||||
) : (
|
) : (
|
||||||
<BranchForm mode="edit" initialData={data} branchId={numericId} />
|
<BranchForm mode="edit" initialData={data} branchId={numericId} />
|
||||||
)}
|
)}
|
||||||
</div>
|
</div>
|
||||||
)
|
);
|
||||||
}
|
}
|
||||||
@@ -5,7 +5,7 @@ export default function DistrictCreatePage() {
|
|||||||
const { t } = useTranslation()
|
const { t } = useTranslation()
|
||||||
|
|
||||||
return (
|
return (
|
||||||
<div className="p-6">
|
<div >
|
||||||
<div className="mb-6">
|
<div className="mb-6">
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
@@ -11,7 +11,7 @@ export default function DistrictEditPage() {
|
|||||||
const { data, isLoading, isError } = useDistrictById(numericId)
|
const { data, isLoading, isError } = useDistrictById(numericId)
|
||||||
|
|
||||||
return (
|
return (
|
||||||
<div className="p-6">
|
<div>
|
||||||
<div className="mb-6">
|
<div className="mb-6">
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
@@ -7,7 +7,7 @@ export default function UserCreatePage() {
|
|||||||
const { t } = useTranslation()
|
const { t } = useTranslation()
|
||||||
|
|
||||||
return (
|
return (
|
||||||
<div className="p-6 space-y-4 max-w-4xl">
|
<div >
|
||||||
|
|
||||||
{/* Title */}
|
{/* Title */}
|
||||||
<h1 className="text-2xl font-bold text-foreground">
|
<h1 className="text-2xl font-bold text-foreground">
|
||||||
|
|||||||
@@ -30,7 +30,7 @@ export default function UserEditPage() {
|
|||||||
}
|
}
|
||||||
|
|
||||||
return (
|
return (
|
||||||
<div className="p-6 space-y-4 max-w-4xl">
|
<div className="space-y-4 max-w-4xl">
|
||||||
|
|
||||||
|
|
||||||
{/* Title */}
|
{/* Title */}
|
||||||
|
|||||||
@@ -5,7 +5,7 @@ export default function ClientCreatePage() {
|
|||||||
const { t } = useTranslation()
|
const { t } = useTranslation()
|
||||||
|
|
||||||
return (
|
return (
|
||||||
<div className="p-6">
|
<div >
|
||||||
|
|
||||||
|
|
||||||
{/* Page heading */}
|
{/* Page heading */}
|
||||||
|
|||||||
@@ -11,7 +11,7 @@ export default function ClientEditPage() {
|
|||||||
const { data: client, isLoading } = useClient(clientId)
|
const { data: client, isLoading } = useClient(clientId)
|
||||||
|
|
||||||
return (
|
return (
|
||||||
<div className="p-6">
|
<div>
|
||||||
|
|
||||||
|
|
||||||
{/* Page heading */}
|
{/* Page heading */}
|
||||||
|
|||||||
@@ -7,7 +7,7 @@ export default function OperatorCreatePage() {
|
|||||||
const { t } = useTranslation()
|
const { t } = useTranslation()
|
||||||
|
|
||||||
return (
|
return (
|
||||||
<div className="p-6">
|
<div>
|
||||||
{/* Page heading */}
|
{/* Page heading */}
|
||||||
<h1 className="text-2xl font-semibold text-foreground mb-6">
|
<h1 className="text-2xl font-semibold text-foreground mb-6">
|
||||||
{t('operators.createTitle', 'Operator döredin')}
|
{t('operators.createTitle', 'Operator döredin')}
|
||||||
|
|||||||
@@ -13,7 +13,7 @@ export default function OperatorEditPage() {
|
|||||||
const { data: operator, isLoading } = useOperator(operatorId)
|
const { data: operator, isLoading } = useOperator(operatorId)
|
||||||
|
|
||||||
return (
|
return (
|
||||||
<div className="p-6">
|
<div >
|
||||||
{/* Page heading */}
|
{/* Page heading */}
|
||||||
<h1 className="text-2xl font-semibold text-foreground mb-6">
|
<h1 className="text-2xl font-semibold text-foreground mb-6">
|
||||||
{t('operators.editTitle', 'Operator üýtget')}: {operator?.name ?? ''}
|
{t('operators.editTitle', 'Operator üýtget')}: {operator?.name ?? ''}
|
||||||
|
|||||||
Reference in new issue
Block a user