Skip to content

Conversation

@jeonghwanJay
Copy link
Collaborator

@jeonghwanJay jeonghwanJay commented Apr 23, 2025

#️⃣연관된 이슈

Closes #6

📝 PR 유형

해당하는 유형에 'x'로 체크해주세요.

  • 기능 추가 (Feature)
  • 버그 수정 (Bug Fix)
  • 코드 개선 (Refactoring)
  • 스타일 변경 (UI/UX)
  • 문서 작업 (Documentation)
  • 환경 설정 (Configuration)
  • 기타 (Other)

📝작업 내용

  • Header 레이아웃 구현
  • Footer 레이아웃 구현
  • Main 레이아웃 구현
  • 로그인/로그아웃 레이아웃 구현

@jeonghwanJay jeonghwanJay added the Feature (기능 추가) 기능을 추가합니다. label Apr 23, 2025
@jeonghwanJay jeonghwanJay self-assigned this Apr 23, 2025
@github-actions github-actions bot requested review from cozy-ito and ghdtnals April 23, 2025 13:52
@netlify
Copy link

netlify bot commented Apr 23, 2025

Deploy Preview for thejulge1 ready!

Name Link
🔨 Latest commit 5cb8666
🔍 Latest deploy log https://app.netlify.com/sites/thejulge1/deploys/68115ec63542470008e08a4b
😎 Deploy Preview https://deploy-preview-18--thejulge1.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify site configuration.

@almighty55555 almighty55555 changed the title feat: 레이아웃 구현 [feat] 레이아웃 구현 Apr 24, 2025
Copy link
Collaborator

@cozy-ito cozy-ito left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

고생하셨습니다. 👍

src/Router.tsx 라우트 파일에 적용까지 하면 좋을 것 같아요!

export const router = createBrowserRouter([
  {
    Component: AuthLayout,
    children: authRoutes,
  },
  {
    Component: MainLayout,
    children: appRoutes,
  },
]);

아마 레이아웃 적용하면, required props를 전달받지 못해서 에러가 날 텐데요!
아래 리뷰에서처럼 굳이 props로 두지 않아도 될 거라고 생각해요 😅
이후 PR에서 전역 상태 및 여러 비동기 요청에 대한 로직으로 대신 처리하면 될 것 같습니다. 🤔

우선 페이지 작업을 위해서 Approved 먼저 드려요!

Comment on lines +14 to +18
isLoggedIn,
userNavLabel,
hasAlarm,
onLogout,
onToggleAlarm,
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

해당 props 들은 별도로 받지 않아도 될 것 같아요!
isLoggedIn, userNavLabel은 이후 로그인 후의 전역 상태에서 데이터를 받으면 될 것 같고,
hasAlarm, onToggleAlaam도 추후 알람을 위한 컴포넌트에서 처리,
onLogout도 로그아웃 버튼에서 바로 실행하면 될 것 같아요 🤔

@jeonghwanJay jeonghwanJay merged commit 9aea3aa into dev Apr 30, 2025
7 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Feature (기능 추가) 기능을 추가합니다.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

레이아웃 구현

4 participants