diff --git a/src/app/(main)/analytics/page.tsx b/src/app/(main)/analytics/page.tsx index 0a0cef5..7153c33 100644 --- a/src/app/(main)/analytics/page.tsx +++ b/src/app/(main)/analytics/page.tsx @@ -15,7 +15,7 @@ import { Payments, People, } from '@mui/icons-material'; -import Header from '@/components/layout/Header'; +import Header from '@/shared/ui/Header'; // Mock 데이터 const mockAnalyticsData = { diff --git a/src/app/(main)/events/page.tsx b/src/app/(main)/events/page.tsx index 0315f45..6fd894c 100644 --- a/src/app/(main)/events/page.tsx +++ b/src/app/(main)/events/page.tsx @@ -19,7 +19,7 @@ import { Grid, } from '@mui/material'; import { Search, FilterList } from '@mui/icons-material'; -import Header from '@/components/layout/Header'; +import Header from '@/shared/ui/Header'; // Mock 데이터 const mockEvents = [ diff --git a/src/app/(main)/layout.tsx b/src/app/(main)/layout.tsx index 3eb5704..cacab56 100644 --- a/src/app/(main)/layout.tsx +++ b/src/app/(main)/layout.tsx @@ -1,5 +1,5 @@ import { Box } from '@mui/material'; -import BottomNavigation from '@/components/layout/BottomNavigation'; +import BottomNavigation from '@/shared/ui/BottomNavigation'; export default function MainLayout({ children }: { children: React.ReactNode }) { return ( diff --git a/src/app/(main)/page.tsx b/src/app/(main)/page.tsx index 0a21128..d0de68c 100644 --- a/src/app/(main)/page.tsx +++ b/src/app/(main)/page.tsx @@ -21,7 +21,7 @@ import { Edit, CheckCircle, } from '@mui/icons-material'; -import Header from '@/components/layout/Header'; +import Header from '@/shared/ui/Header'; // Mock 사용자 데이터 (API 연동 전까지 임시 사용) const mockUser = { diff --git a/src/app/layout.tsx b/src/app/layout.tsx index 3dc9e89..65d3c18 100644 --- a/src/app/layout.tsx +++ b/src/app/layout.tsx @@ -1,6 +1,6 @@ import type { Metadata, Viewport } from 'next'; -import { MUIThemeProvider } from '@/lib/theme-provider'; -import { ReactQueryProvider } from '@/lib/react-query-provider'; +import { MUIThemeProvider } from '@/shared/lib/theme-provider'; +import { ReactQueryProvider } from '@/shared/lib/react-query-provider'; import '@/styles/globals.css'; export const metadata: Metadata = { diff --git a/src/components/layout/BottomNav.tsx b/src/components/layout/BottomNav.tsx deleted file mode 100644 index 28788c6..0000000 --- a/src/components/layout/BottomNav.tsx +++ /dev/null @@ -1,54 +0,0 @@ -'use client'; - -import { usePathname, useRouter } from 'next/navigation'; -import { BottomNavigation, BottomNavigationAction, Paper } from '@mui/material'; -import HomeIcon from '@mui/icons-material/Home'; -import EventIcon from '@mui/icons-material/Event'; -import BarChartIcon from '@mui/icons-material/BarChart'; -import PersonIcon from '@mui/icons-material/Person'; - -export function BottomNav() { - const pathname = usePathname(); - const router = useRouter(); - - const navItems = [ - { label: '홈', icon: , value: '/' }, - { label: '이벤트', icon: , value: '/events' }, - { label: '분석', icon: , value: '/analytics' }, - { label: '프로필', icon: , value: '/profile' }, - ]; - - const currentValue = navItems.find((item) => item.value === pathname)?.value || '/'; - - return ( - - { - router.push(newValue); - }} - showLabels - sx={{ height: 60 }} - > - {navItems.map((item) => ( - - ))} - - - ); -} diff --git a/src/lib/react-query-provider.tsx b/src/shared/lib/react-query-provider.tsx similarity index 100% rename from src/lib/react-query-provider.tsx rename to src/shared/lib/react-query-provider.tsx diff --git a/src/lib/theme-provider.tsx b/src/shared/lib/theme-provider.tsx similarity index 91% rename from src/lib/theme-provider.tsx rename to src/shared/lib/theme-provider.tsx index acdc6a0..2052d7b 100644 --- a/src/lib/theme-provider.tsx +++ b/src/shared/lib/theme-provider.tsx @@ -3,7 +3,7 @@ import { ThemeProvider } from '@mui/material/styles'; import CssBaseline from '@mui/material/CssBaseline'; import { AppRouterCacheProvider } from '@mui/material-nextjs/v14-appRouter'; -import { theme } from '@/styles/theme'; +import { theme } from '@/shared/lib/theme'; import { ReactNode } from 'react'; export function MUIThemeProvider({ children }: { children: ReactNode }) { diff --git a/src/styles/theme.ts b/src/shared/lib/theme.ts similarity index 100% rename from src/styles/theme.ts rename to src/shared/lib/theme.ts diff --git a/src/components/layout/BottomNavigation.tsx b/src/shared/ui/BottomNavigation.tsx similarity index 100% rename from src/components/layout/BottomNavigation.tsx rename to src/shared/ui/BottomNavigation.tsx diff --git a/src/components/layout/Header.tsx b/src/shared/ui/Header.tsx similarity index 100% rename from src/components/layout/Header.tsx rename to src/shared/ui/Header.tsx diff --git a/src/components/common/Loading.tsx b/src/shared/ui/Loading.tsx similarity index 100% rename from src/components/common/Loading.tsx rename to src/shared/ui/Loading.tsx diff --git a/src/components/common/Toast.tsx b/src/shared/ui/Toast.tsx similarity index 100% rename from src/components/common/Toast.tsx rename to src/shared/ui/Toast.tsx