This commit is contained in:
nabijonovdavronbek619@gmail.com
2026-04-15 13:00:36 +05:00
parent 18b2bfdfc4
commit afe402a58a
209 changed files with 249 additions and 171 deletions

View File

@@ -6,11 +6,14 @@ import { useParams } from "next/navigation";
import Text from "../lib_components/text";
import Link from "next/link";
import { useCarType } from "@/store/carType";
import { useSubCategory } from "@/store/subCategory";
export default function CarType_Header() {
const params = useParams();
const initialCar = useCarType((state) => state.initialCar);
console.log(params);
const initialSubCategory = useSubCategory(
(state) => state.initialSubCategory,
);
return (
<div
dir="ltr"
@@ -35,7 +38,7 @@ export default function CarType_Header() {
id="title"
className="text-white font-bold text-4xl tracking-[2px]"
>
<Text txt={`${params.carType}`} />
<Text txt={`${initialSubCategory.name}`} />
</div>
<div
@@ -57,7 +60,7 @@ export default function CarType_Header() {
: "text-secondary"
}
>
{initialCar.name}
{initialSubCategory.name}
</Link>
{params.carDeatil && "/"}
{params.carDeatil && (