11import { UserSignInAccount , UserSignInMethod } from "@frontend/shop/components/common" ;
22import { OrderList } from "@frontend/shop/components/features" ;
3- import { Divider , Stack , Typography } from "@mui/material" ;
3+ import { Box , Divider , Stack , Typography , useMediaQuery , useTheme } from "@mui/material" ;
44import { FC , useEffect } from "react" ;
55
66import { PageLayout } from "@apps/pyconkr-2026/components/layout/PageLayout" ;
77import { useAppContext } from "@apps/pyconkr-2026/contexts/app_context" ;
88
99export const StoreOrderHistoriesPage : FC = ( ) => {
1010 const { setAppContext, language } = useAppContext ( ) ;
11+ const theme = useTheme ( ) ;
12+ const isMobile = useMediaQuery ( theme . breakpoints . down ( "md" ) ) ;
1113 const title = language === "ko" ? "주문 내역" : "Order History" ;
1214 const noticeText =
1315 language === "ko"
@@ -26,10 +28,14 @@ export const StoreOrderHistoriesPage: FC = () => {
2628
2729 return (
2830 < PageLayout spacing = { 3 } >
29- < Typography variant = "h4" sx = { { alignSelf : "flex-start" , fontWeight : 700 } } >
30- { title }
31- </ Typography >
32- < Divider flexItem />
31+ { isMobile && (
32+ < >
33+ < Typography variant = "h4" sx = { { alignSelf : "flex-start" , fontWeight : 700 } } >
34+ { title }
35+ </ Typography >
36+ < Divider flexItem />
37+ </ >
38+ ) }
3339 < Stack component = "ul" sx = { { alignSelf : "flex-start" , pl : 3 , m : 0 , gap : 0.5 } } >
3440 < li >
3541 < Typography variant = "body2" > { noticeText } </ Typography >
@@ -40,7 +46,9 @@ export const StoreOrderHistoriesPage: FC = () => {
4046 </ Typography >
4147 </ li >
4248 </ Stack >
43- < OrderList />
49+ < Box sx = { { width : "100%" } } >
50+ < OrderList />
51+ </ Box >
4452 </ PageLayout >
4553 ) ;
4654} ;
0 commit comments