const targetId = document.getElementById(`usage${customerCenterId}`)
useEffect(()=>{
if(!(customerCenterId === null || customerCenterId === undefined)){
targetId?.scrollIntoView({behavior:'smooth',top:targetId.offsetTop})
}
},[customerCenterId])
return (
<>
<p className='p-6 text-center text-caption1_600 text-gray_160 bg-gray_15 border-b'>힐리어리 앱에 대해 궁금하신 점을 문의해주세요.</p>
<ul className='bg-white' ref={scrollRef}>
{customerCenter?.map((el,idx)=>(
<li className='p-6 border-b' key={idx}
id={`usage${el?.id}`}
onClick={()=>{dispatch(onSetCustomerCenterQList(el?.id));navigate("/contact/usageqa")}}
>
{InquiryList(el)}
</li>
))}
</ul>
</>
)
카테고리 없음