-
Notifications
You must be signed in to change notification settings - Fork 0
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
feat: 데스크탑 레이아웃 적용 #59
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
수고하셨습니다!!
src/renderer/shared/ui/layouts.tsx
Outdated
export type MobileLayoutProps = { | ||
children: React.ReactNode; | ||
}; | ||
|
||
export const MobileLayout = ({ children }: MobileLayoutProps) => { | ||
return <div className="m-auto h-dvh max-w-md bg-background-primary">{children}</div>; | ||
}; | ||
|
||
export type DesktopLayoutProps = { | ||
title?: string; | ||
children: React.ReactNode; | ||
}; | ||
|
||
export const DesktopLayout = ({ title, children }: DesktopLayoutProps) => { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
MobileLayout, DesktopLayout 에서 큰 차이가 사이드바 여부인것 같은데,
SidebarLayout, SimpleLayout(or NoSidebarLayout?) 으로 네이밍하는건 어때?!
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
오 좋은 의견!!
기존 화면이 모바일향이고, 이번에 사이드바가 추가된 데스크탑향이여서 이런식으로 네이밍을 했는데
이 컨텍스트를 지운다면 사실 Sidebar or not 과 같은 형식의 네이밍이 좋은 것 같네!
그럼 SidebarLayout, SimpleLayout 이 형태로 반영할게~~
작업 내용
체크리스트