fix: hero

This commit is contained in:
RizqiSyahrendra 2025-04-29 03:54:00 +07:00
parent 1c30894cc7
commit 328ccb602b

View File

@ -1,18 +1,17 @@
"use client"; "use client";
import HeroSlider from "@/components/HeroSlider"; import HeroSlider from "@/components/HeroSlider";
import { useRef } from "react";
export default function HomeTopSection() { export default function HomeTopSection() {
const formRef = useRef<HTMLDivElement | null>(null); // const formRef = useRef<HTMLDivElement | null>(null);
function scrollToForm() { // function scrollToForm() {
formRef.current?.scrollIntoView?.({ behavior: "smooth" }); // formRef.current?.scrollIntoView?.({ behavior: "smooth" });
} // }
return ( return (
<> <>
<HeroSlider onClickBook={scrollToForm} /> <HeroSlider />
{/* <div className="lg:hidden" ref={formRef}> {/* <div className="lg:hidden" ref={formRef}>
<ContactFormSection /> <ContactFormSection />