Skip to content

Commit

Permalink
Refactor/#422 visitor tracker (#423)
Browse files Browse the repository at this point in the history
* chore: blank로 새로운 탭에서 링크 접속

* chore: 14 -> 16시 ?

* chore: behance link 추가

* feat: behance optional type 추가

* feat: behance property 유무에 따른 아이콘 렌더링

* feat: 방문자 추적 mutation 추가
  • Loading branch information
wuzoo authored Sep 8, 2024
1 parent 0c52d9c commit 3b163e7
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/views/MainPage/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@ import PageLayout from '@src/components/common/PageLayout';
import BottomLayout from '@src/views/MainPage/components/BottomLayout';
import IntroSection from '@src/views/MainPage/components/IntroSection';
import TopBanner from '@src/views/MainPage/components/TopBanner';
import usePostVisitor from '@src/views/MainPage/hooks/usePostVisitor';
import { checkIsTimeInRange } from '../../lib/utils/date';
import Banner from './components/Banner';
import Introduce from './components/Introduce';
Expand All @@ -10,6 +11,8 @@ import ScrollInteractiveLogo from './components/ScrollInteractiveLogo';
function MainPage() {
const isValid = checkIsTimeInRange('2024-09-08 10:00:00', '2024-09-13 18:00:00'); // 모집 여부

usePostVisitor();

return (
<PageLayout>
{isValid && <TopBanner />}
Expand Down

0 comments on commit 3b163e7

Please sign in to comment.