-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* feat: 아이폰 레이아웃 제거 * chore: react-iphone-layout 라이브러리 추가 * feat: 아이폰 레이아웃 * style: 주석 위치 수정
- Loading branch information
Showing
10 changed files
with
24 additions
and
216 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,10 +1,20 @@ | ||
import { IPhoneLayout } from 'react-iphone-layout'; | ||
import 'react-iphone-layout/dist/ReactIPhoneLayout.css'; | ||
import { Outlet } from 'react-router-dom'; | ||
|
||
import './RootLayout.scss'; | ||
|
||
/** | ||
* 🚨 현재 적용되어 있는 IPhoneLayout은 DEV 모드에서만 활성화되어야 하지만, | ||
* 실제 개발 서버에서도 볼 수 있도록 하기 위해 따로 처리하지 않겠습니다. | ||
* 하지만 실제 PROD 모드로 배포할 경우에는 <IPhoneLayout />을 제거해주세요. | ||
*/ | ||
export const RootLayout = () => { | ||
return ( | ||
<div className='wrap'> | ||
<Outlet /> | ||
</div> | ||
<IPhoneLayout> | ||
<div className='wrap'> | ||
<Outlet /> | ||
</div> | ||
</IPhoneLayout> | ||
); | ||
}; |
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1 @@ | ||
export { IPhoneLayout } from './iPhone'; | ||
export { RootLayout } from './RootLayout'; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters