diff --git a/src/components/Button/BottomFixedDiv.tsx b/src/app/(Main)/MainFooter.tsx similarity index 61% rename from src/components/Button/BottomFixedDiv.tsx rename to src/app/(Main)/MainFooter.tsx index 51f3bfb..95cfeb3 100644 --- a/src/components/Button/BottomFixedDiv.tsx +++ b/src/app/(Main)/MainFooter.tsx @@ -1,12 +1,12 @@ -import AppDownloadBanner from '../Header/AppDownloadBanner'; +import AppDownloadBanner from '../../components/Header/AppDownloadBanner'; import { StrictPropsWithChildren } from '@/types'; import { isIOS } from '@/utils'; -export function BottomFixedDiv({ children }: StrictPropsWithChildren) { +export function MainFooter({ children }: StrictPropsWithChildren) { return ( <>
-
+
{children}
{isIOS() && } diff --git a/src/app/(Main)/pick/PickComponent.tsx b/src/app/(Main)/pick/PickComponent.tsx index 453e9a5..d8c74a7 100644 --- a/src/app/(Main)/pick/PickComponent.tsx +++ b/src/app/(Main)/pick/PickComponent.tsx @@ -5,8 +5,9 @@ import { useState } from 'react'; import Lottie from 'react-lottie-player'; import lottiePick from '#/lotties/pick.json'; +import { MainFooter } from '../MainFooter'; import { usePosePickQuery } from '@/apis'; -import { BottomFixedDiv, PrimaryButton } from '@/components/Button'; +import { PrimaryButton } from '@/components/Button'; import PoseImage from '@/components/Modal/PoseImage'; import { SelectionBasic } from '@/components/Selection'; import { PEOPLE_COUNT_LIST } from '@/constants'; @@ -51,12 +52,12 @@ export default function PickComponent() {
- + - + ); } diff --git a/src/app/(Main)/talk/TalkSection.tsx b/src/app/(Main)/talk/TalkSection.tsx index d74d2a8..a398334 100644 --- a/src/app/(Main)/talk/TalkSection.tsx +++ b/src/app/(Main)/talk/TalkSection.tsx @@ -6,8 +6,9 @@ import Lottie from 'react-lottie-player'; import lottieTalkAfterClick from '#/lotties/talk_after_click.json'; import lottieTalkBeforeClick from '#/lotties/talk_before_click.json'; +import { MainFooter } from '../MainFooter'; import { usePoseTalkQuery } from '@/apis'; -import { BottomFixedDiv, PrimaryButton } from '@/components/Button'; +import { PrimaryButton } from '@/components/Button'; import { Spacing } from '@/components/Spacing'; const INITIAL_TALK_WORD = `제시어에 맞춰 포즈를 취해요!`; @@ -46,9 +47,9 @@ export default function TalkWordSection() { )} - + - + ); } diff --git a/src/app/(Sub)/detail/[id]/DetailSection.tsx b/src/app/(Sub)/detail/[id]/DetailSection.tsx index 1e03258..eec0403 100644 --- a/src/app/(Sub)/detail/[id]/DetailSection.tsx +++ b/src/app/(Sub)/detail/[id]/DetailSection.tsx @@ -6,7 +6,8 @@ import { useState } from 'react'; import Source from './Source'; import TagButton from './TagButton'; import { usePoseDetailQuery } from '@/apis'; -import { BottomFixedDiv, PrimaryButton } from '@/components/Button'; +import { MainFooter } from '@/app/(Main)/MainFooter'; +import { PrimaryButton } from '@/components/Button'; import { Popup } from '@/components/Modal'; import PoseImage from '@/components/Modal/PoseImage'; import { useOverlay } from '@/components/Overlay/useOverlay'; @@ -50,7 +51,7 @@ export default function DetailSection({ poseId }: DetailSectionProps) { {tagAttributes?.split(',').map((tag, index) => )} - + shareKakao(poseId)} /> - + ); } diff --git a/src/app/(Sub)/menu/withdraw/page.tsx b/src/app/(Sub)/menu/withdraw/page.tsx index a3753e4..7ba1b43 100644 --- a/src/app/(Sub)/menu/withdraw/page.tsx +++ b/src/app/(Sub)/menu/withdraw/page.tsx @@ -3,7 +3,8 @@ import { useRouter } from 'next/navigation'; import { useState } from 'react'; -import { BottomFixedDiv, PrimaryButton } from '@/components/Button'; +import { MainFooter } from '@/app/(Main)/MainFooter'; +import { PrimaryButton } from '@/components/Button'; import Header from '@/components/Header'; import { Popup } from '@/components/Modal'; import { useOverlay } from '@/components/Overlay/useOverlay'; @@ -84,14 +85,14 @@ export default function Page() { /> )} - + router.back()} /> {withdrawalReason ? ( ) : ( )} - + ); } diff --git a/src/components/Button/index.ts b/src/components/Button/index.ts index d839642..7122244 100644 --- a/src/components/Button/index.ts +++ b/src/components/Button/index.ts @@ -1,3 +1,2 @@ -export { BottomFixedDiv, ButtonList, BottomDiv } from './BottomFixedDiv'; export { Icon, IconButton } from './Icon'; export { default as PrimaryButton } from './PrimaryButton';