add button seeAll

This commit is contained in:
Sabda Yagra 2025-04-24 18:50:48 +07:00
parent 5cefc299d8
commit bf66c16c7b
1 changed files with 12 additions and 0 deletions

View File

@ -8,6 +8,7 @@ import { usePathname } from "next/navigation";
import { useParams } from "next/navigation";
import Image from "next/image";
import { Carousel, CarouselContent, CarouselItem, CarouselNext, CarouselPrevious } from "../ui/carousel";
import { useRouter } from "@/i18n/routing";
const ContentCategory = (props: { group?: string }) => {
const [categories, setCategories] = useState<any>();
@ -16,6 +17,9 @@ const ContentCategory = (props: { group?: string }) => {
const locale = params?.locale;
const poldaName = params?.polda_name;
const satkerName = params?.satker_name;
const router = useRouter();
let prefixPath = poldaName ? `/polda/${poldaName}` : satkerName ? `/satker/${satkerName}` : "/";
useEffect(() => {
initFetch();
@ -104,6 +108,14 @@ const ContentCategory = (props: { group?: string }) => {
{seeAllValue ? t("seeLess") : t("seeMore")}
</Button>
</div> */}
<div className="flex items-center flex-row justify-center mt-7">
<div
// onClick={() => router.push(prefixPath + `/${selectedTab}/filter?sortBy=${props.type}`)}
className="cursor-pointer border text-[#bb3523] rounded-lg text-sm lg:text-md px-4 py-1 border-[#bb3523]"
>
{t("seeAll")}
</div>
</div>
</Reveal>
</div>
);