fix: hero
This commit is contained in:
parent
1c30894cc7
commit
328ccb602b
@ -1,18 +1,17 @@
|
||||
"use client";
|
||||
|
||||
import HeroSlider from "@/components/HeroSlider";
|
||||
import { useRef } from "react";
|
||||
|
||||
export default function HomeTopSection() {
|
||||
const formRef = useRef<HTMLDivElement | null>(null);
|
||||
// const formRef = useRef<HTMLDivElement | null>(null);
|
||||
|
||||
function scrollToForm() {
|
||||
formRef.current?.scrollIntoView?.({ behavior: "smooth" });
|
||||
}
|
||||
// function scrollToForm() {
|
||||
// formRef.current?.scrollIntoView?.({ behavior: "smooth" });
|
||||
// }
|
||||
|
||||
return (
|
||||
<>
|
||||
<HeroSlider onClickBook={scrollToForm} />
|
||||
<HeroSlider />
|
||||
|
||||
{/* <div className="lg:hidden" ref={formRef}>
|
||||
<ContactFormSection />
|
||||
|
Loading…
x
Reference in New Issue
Block a user