connect links to a tegs
This commit is contained in:
@@ -5,11 +5,13 @@ import Image from "next/image";
|
||||
import Link from "next/link";
|
||||
import Text from "../lib_components/text";
|
||||
import { motion } from "framer-motion";
|
||||
import { useParams } from "next/navigation";
|
||||
|
||||
export default function SliderCard({ data }: { data: ProductTypes }) {
|
||||
const router = useParams();
|
||||
return (
|
||||
<Link
|
||||
href={data.path}
|
||||
href={`/${router.lang}/${data.path}`}
|
||||
id="news_slider_card"
|
||||
className="group hover:cursor-pointer block"
|
||||
>
|
||||
|
||||
Reference in New Issue
Block a user