Skip to content

Commit

Permalink
feat: 모바일 접속시 상단 이동 버튼 감추기
Browse files Browse the repository at this point in the history
  • Loading branch information
solar3070 committed Sep 3, 2023
1 parent 91ce3e7 commit 21deb64
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/views/MainPage/MainPage.tsx
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
import { Footer, Header, Layout, ScrollToTopButton } from '@src/components';
import { useIsMobile } from '@src/hooks/useDevice';
import {
ActivityDescription,
ActivityReview,
Expand All @@ -11,11 +12,13 @@ import {
import styles from './main-page.module.scss';

function MainPage() {
const isMobile = useIsMobile();

return (
<>
<Layout>
<Header />
<ScrollToTopButton />
{!isMobile && <ScrollToTopButton />}
<RecruitFloatingBanner />
<BannerImage />
<div className={styles.container}>
Expand Down

0 comments on commit 21deb64

Please sign in to comment.