removed additional breadcrumbs

This commit is contained in:
Jelaletdin12 committed 2026-05-14 11:54:40 +05:00
1 parent ad9a93b61e
commit d46c951b7d
21 files changed
+26 -344

No files matched your search

@@ -189,13 +189,7 @@ export function BranchesListPage() {
<div className="p-6">
<div className="flex items-center justify-between mb-6">
<div>
<nav className="flex items-center gap-2 text-sm text-muted-foreground mb-1">
<span>{t('nav.settings', 'Sazlamalar')}</span>
<span>›</span>
<span className="text-foreground font-medium">
{t('branches.title', 'Şahamçalar')}
</span>
</nav>
<h1 className="text-2xl font-bold text-foreground">
{t('branches.title', 'Şahamçalar')}
</h1>
@@ -1,33 +1,13 @@
import { useNavigate } from 'react-router-dom'
import { useTranslation } from 'react-i18next'
import { BranchForm } from '@/features/branches/components/branchesForm'
export default function BranchCreatePage() {
const navigate = useNavigate()
const { t } = useTranslation()
return (
<div className="p-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.create.breadcrumb', 'Şahamça döretmek')}
</span>
</nav>
<h1 className="text-2xl font-bold text-foreground">
{t('branches.create.title', 'Şahamça döretmek')}
@@ -32,25 +32,7 @@ export function BranchViewPage() {
<div className="p-6">
<div className="flex items-start justify-between mb-6">
<div>
<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">
{isLoading ? '...' : data?.name[lang] ?? ''}
</span>
</nav>
<h1 className="text-2xl font-bold text-foreground">
{isLoading
? '...'
@@ -157,13 +157,7 @@ export function DistrictsListPage() {
<div className="p-6">
<div className="flex items-center justify-between mb-6">
<div>
<nav className="flex items-center gap-2 text-sm text-muted-foreground mb-1">
<span>{t('nav.settings', 'Sazlamalar')}</span>
<span>›</span>
<span className="text-foreground font-medium">
{t('districts.title', 'Etraplar')}
</span>
</nav>
<h1 className="text-2xl font-bold text-foreground">
{t('districts.title', 'Etraplar')}
</h1>
@@ -1,33 +1,13 @@
import { useNavigate } from 'react-router-dom'
import { useTranslation } from 'react-i18next'
import { DistrictForm } from '@/features/districts/components/districtsForm'
export default function DistrictCreatePage() {
const navigate = useNavigate()
const { t } = useTranslation()
return (
<div className="p-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/districts')}
>
{t('nav.settings', 'Sazlamalar')}
</span>
<span>›</span>
<span
className="cursor-pointer hover:text-foreground transition-colors"
onClick={() => navigate('/settings/location/districts')}
>
{t('districts.title', 'Etraplar')}
</span>
<span>›</span>
<span className="text-foreground font-medium">
{t('districts.create.breadcrumb', 'Etrap döretmek')}
</span>
</nav>
<h1 className="text-2xl font-bold text-foreground">
{t('districts.create.title', 'Etrap döretmek')}
@@ -1,11 +1,10 @@
import { useNavigate, useParams } from 'react-router-dom'
import { useParams } from 'react-router-dom'
import { useTranslation } from 'react-i18next'
import { DistrictForm } from '@/features/districts/components/districtsForm'
import { useDistrictById } from '@/features/districts/hooks/useDistricts'
export default function DistrictEditPage() {
const { id } = useParams<{ id: string }>()
const navigate = useNavigate()
const { t } = useTranslation()
const numericId = Number(id)
@@ -14,25 +13,7 @@ export default function DistrictEditPage() {
return (
<div className="p-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/districts')}
>
{t('nav.settings', 'Sazlamalar')}
</span>
<span>›</span>
<span
className="cursor-pointer hover:text-foreground transition-colors"
onClick={() => navigate('/settings/location/districts')}
>
{t('districts.title', 'Etraplar')}
</span>
<span>›</span>
<span className="text-foreground font-medium">
{t('districts.edit.breadcrumb', 'Üýtgetmek')}
</span>
</nav>
<h1 className="text-2xl font-bold text-foreground">
{isLoading
@@ -32,25 +32,7 @@ export function DistrictViewPage() {
<div className="p-6">
<div className="flex items-start justify-between mb-6">
<div>
<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/districts')}
>
{t('nav.settings', 'Sazlamalar')}
</span>
<span>›</span>
<span
className="cursor-pointer hover:text-foreground transition-colors"
onClick={() => navigate('/settings/location/districts')}
>
{t('districts.title', 'Etraplar')}
</span>
<span>›</span>
<span className="text-foreground font-medium">
{isLoading ? '...' : data?.name[lang] ?? ''}
</span>
</nav>
<h1 className="text-2xl font-bold text-foreground">
{isLoading
? '...'