Revert "fix: 태블릿에서 PC 뷰 표시되도록 변경"

This reverts commit 28d408ace5.
This commit is contained in:
caadiq 2026-01-22 18:59:48 +09:00
parent 28d408ace5
commit d9ea716089

View file

@ -1,6 +1,6 @@
import { useEffect } from 'react';
import { BrowserRouter, Routes, Route } from 'react-router-dom';
import { isMobileOnly } from 'react-device-detect';
import { BrowserView, MobileView } from 'react-device-detect';
//
import { ScrollToTop } from '@/components/common';
@ -52,16 +52,14 @@ function PCWrapper({ children }) {
/**
* 프로미스나인 팬사이트 메인
* react-device-detect를 사용한 PC/Mobile 분리
* - PC, 태블릿: PC
* - 모바일(): Mobile
*/
function App() {
return (
<BrowserRouter future={{ v7_startTransition: true, v7_relativeSplatPath: true }}>
<ScrollToTop />
{/* PC + 태블릿 뷰 */}
{!isMobileOnly && (
{/* PC 뷰 */}
<BrowserView>
<PCWrapper>
<Routes>
{/* 관리자 페이지 (레이아웃 없음) */}
@ -90,10 +88,10 @@ function App() {
/>
</Routes>
</PCWrapper>
)}
</BrowserView>
{/* Mobile 뷰 (폰만) */}
{isMobileOnly && (
{/* Mobile 뷰 */}
<MobileView>
<Routes>
<Route
path="/"
@ -156,7 +154,7 @@ function App() {
{/* 404 페이지 */}
<Route path="*" element={<MobileNotFound />} />
</Routes>
)}
</MobileView>
</BrowserRouter>
);
}