diff --git a/src/feature/root/components/RendingBody.tsx b/src/feature/root/components/RendingBody.tsx index 5bc7291..776f027 100644 --- a/src/feature/root/components/RendingBody.tsx +++ b/src/feature/root/components/RendingBody.tsx @@ -35,7 +35,7 @@ export const RendingBody = () => { alt: 'QR 코드 공유', width: 260, height: 530.31, - title: '이벤트마다 모인 자리에서 바로 공유', + title: '모인 자리에서 바로 공유', description: '감튀 모임부터 앨범 만들고 초대까지 딱 10초', }, { @@ -43,7 +43,7 @@ export const RendingBody = () => { alt: '베스트컷', width: 312.56, height: 530.31, - title: '이벤트마다 한눈에 보는 베스트컷', + title: '한눈에 보는 베스트컷', description: '사진 고르는 고민 이제 끝', }, { @@ -137,7 +137,7 @@ export const RendingBody = () => { className='absolute bottom-0 z-10 flex h-[242px] w-full flex-col items-center bg-white px-4 pt-8' style={{ paddingBottom: 'calc(env(safe-area-inset-bottom) + 20px)' }} > - {/* 텍스트 및 인디케이터 영역 - 스와이프 가능 */} + {/* 텍스트 영역 - 스와이프 가능 */} { {slides.map((slide, index) => ( -
- {/* 텍스트 영역 */} -
-

- {slide.title} -

-

- {slide.description} -

-
- - {/* 인디케이터 점들 */} -
- {slides.map((_, idx) => ( -
+
+

+ {slide.title} +

+

+ {slide.description} +

))} + {/* 인디케이터 점들 - 고정 */} +
+ {slides.map((_, idx) => ( +
+ {/* 카카오 로그인 버튼 - 고정 */}
{ // 로그인 상태이거나 비로그인에서 스플래시 시간이 지난 경우 return ( -
+
); diff --git a/src/global/hooks/useCheckAuth.ts b/src/global/hooks/useCheckAuth.ts index 546006b..23a9a1e 100644 --- a/src/global/hooks/useCheckAuth.ts +++ b/src/global/hooks/useCheckAuth.ts @@ -53,7 +53,7 @@ export function useCheckAuth({ const status = err?.response?.status; const code = err?.code; - // 401 에러 또는 refresh token 없음 에러 처리 + // 401 에러 또는 refresh token 없음 에러 처리, 혹은 그 외 에러도 비로그인 처리 if ( status === 401 || code === 401 || @@ -62,6 +62,11 @@ export function useCheckAuth({ setIsAuthed(false); setUserId(null); onUnauthed?.(); + } else { + // 그 외 에러 상황에서도(네트워크 에러 등) 일단 비로그인으로 간주하여 무한 로딩 방지 + setIsAuthed(false); + setUserId(null); + onUnauthed?.(); } } };