diff --git a/src/components/Buyer/BuyerHome/HomeConsultInReady.tsx b/src/components/Buyer/BuyerHome/HomeConsultInReady.tsx index 12ab6500..4e32affb 100644 --- a/src/components/Buyer/BuyerHome/HomeConsultInReady.tsx +++ b/src/components/Buyer/BuyerHome/HomeConsultInReady.tsx @@ -11,18 +11,26 @@ import { Space } from 'components/Common/Space'; import { getCurrentHour } from 'utils/getCurrentHour'; import { Flex } from 'components/Common/Flex'; import CounselorCard from 'components/Common/CounselorCard'; -/// -/// -/// + +// +// +// + interface HomeConsultInReadyProps { searchData: SearchResultData[]; } -/// -/// -/// + +// +// +// + export const HomeConsultInReady = ({ searchData }: HomeConsultInReadyProps) => { const navigate = useNavigate(); + // + // + // + return (
{isRealtime ? ( - - {`${hours}시 기준 실시간 상담 가능`} - + + + {`${hours}시 기준 실시간 상담 가능`} + + ) : null} - + @@ -192,7 +194,7 @@ const CounselorCard = ({ - + {tagList.map((value: any) => { return ( @@ -298,6 +300,7 @@ const BookMarkIcon = styled(BookMark)` padding-left: 0.8rem; cursor: pointer; `; + const NoneBookMarkIcon = styled(NoneBookMark)` padding-left: 0.8rem; cursor: pointer; diff --git a/src/pages/Buyer/BuyerHome.tsx b/src/pages/Buyer/BuyerHome.tsx index ffb90831..d7298887 100644 --- a/src/pages/Buyer/BuyerHome.tsx +++ b/src/pages/Buyer/BuyerHome.tsx @@ -9,12 +9,18 @@ import HomeAboutFooterSection from 'components/Common/HomeAboutFooterSection'; import { SearchResultData } from 'utils/type'; import { useEffect, useState } from 'react'; import { patchCounselorsAll } from 'api/patch'; + // // // + export const BuyerHome = () => { const navigate = useNavigate(); const [searchData, setSearchData] = useState([]); + + // + // + // useEffect(() => { const fectchSearchResults = async () => { try { @@ -34,6 +40,11 @@ export const BuyerHome = () => { }; fectchSearchResults(); }, [navigate]); + + // + // + // + return (