Initial Changes
This commit is contained in:
@@ -14,7 +14,8 @@ import Autoplay from "embla-carousel-autoplay";
|
||||
import Link from "next/link";
|
||||
import { ArrowRight } from "lucide-react";
|
||||
|
||||
const Hero = () => {
|
||||
const Hero = ({ data }) => {
|
||||
console.log(data);
|
||||
const plugin = React.useRef(
|
||||
Autoplay({ delay: 4000, stopOnInteraction: true })
|
||||
);
|
||||
@@ -32,7 +33,7 @@ const Hero = () => {
|
||||
return () => window.removeEventListener("resize", checkMobile);
|
||||
}, []);
|
||||
|
||||
const heroData = [
|
||||
const heroData = data || [
|
||||
{
|
||||
type: "image",
|
||||
src: "/rudraksh banner image 2.avif",
|
||||
@@ -84,7 +85,6 @@ const Hero = () => {
|
||||
className="object-cover brightness-75"
|
||||
priority={index === 0}
|
||||
/>
|
||||
|
||||
</div>
|
||||
</CarouselItem>
|
||||
))}
|
||||
|
||||
Reference in New Issue
Block a user