File tree Expand file tree Collapse file tree 5 files changed +12
-12
lines changed
apps/pyconkr/src/debug/page/shop_component
packages/shop/src/components Expand file tree Collapse file tree 5 files changed +12
-12
lines changed Original file line number Diff line number Diff line change @@ -136,15 +136,15 @@ export const ShopCartList: React.FC<{ onPaymentCompleted?: () => void }> = ({
136136 < Typography variant = "h5" gutterBottom >
137137 Cart List
138138 </ Typography >
139- < Shop . Components . ShopSignInGuard >
139+ < Shop . Components . SignInGuard >
140140 < ErrorBoundary
141141 fallback = { < div > 장바구니 정보를 불러오는 중 문제가 발생했습니다.</ div > }
142142 >
143143 < Suspense fallback = { < CircularProgress /> } >
144144 < WrappedShopCartList />
145145 </ Suspense >
146146 </ ErrorBoundary >
147- </ Shop . Components . ShopSignInGuard >
147+ </ Shop . Components . SignInGuard >
148148 </ >
149149 ) ;
150150} ;
Original file line number Diff line number Diff line change @@ -222,15 +222,15 @@ export const ShopOrderList: React.FC = () => {
222222 < Typography variant = "h5" gutterBottom >
223223 Order List
224224 </ Typography >
225- < Shop . Components . ShopSignInGuard >
225+ < Shop . Components . SignInGuard >
226226 < ErrorBoundary
227227 fallback = { < div > 주문 내역을 불러오는 중 문제가 발생했습니다.</ div > }
228228 >
229229 < Suspense fallback = { < CircularProgress /> } >
230230 < WrappedOrderList />
231231 </ Suspense >
232232 </ ErrorBoundary >
233- </ Shop . Components . ShopSignInGuard >
233+ </ Shop . Components . SignInGuard >
234234 </ >
235235 ) ;
236236} ;
Original file line number Diff line number Diff line change @@ -146,7 +146,7 @@ const ShopProductItem: React.FC<{
146146 < Common . Components . MDXRenderer text = { product . description || "" } />
147147 < br />
148148 < Divider />
149- < Shop . Components . ShopSignInGuard
149+ < Shop . Components . SignInGuard
150150 fallback = {
151151 < NotPurchasable >
152152 로그인 후 장바구니에 담거나 구매할 수 있어요.
@@ -180,7 +180,7 @@ const ShopProductItem: React.FC<{
180180 ) : (
181181 < NotPurchasable > { notPurchasableReason } </ NotPurchasable >
182182 ) }
183- </ Shop . Components . ShopSignInGuard >
183+ </ Shop . Components . SignInGuard >
184184 </ AccordionDetails >
185185 { R . isNullish ( notPurchasableReason ) && (
186186 < AccordionActions sx = { { pt : "0" , pb : "1rem" , px : "2rem" } } >
Original file line number Diff line number Diff line change @@ -4,15 +4,15 @@ import {
44} from "./option_group_input" ;
55import { PriceDisplay as PriceDisplayComponent } from "./price_display" ;
66import { ShopContextProvider as ShopContextProviderComponent } from "./shop_context" ;
7- import { ShopSignInGuard as ShopSignInGuardComponent } from "./signin_guard" ;
7+ import { SignInGuard as SignInGuardComponent } from "./signin_guard" ;
88
99namespace ShopComponents {
1010 export const ShopContextProvider = ShopContextProviderComponent ;
1111 export const OptionGroupInput = OptionGroupInputComponent ;
1212 export const OrderProductRelationOptionInput =
1313 OrderProductRelationOptionInputComponent ;
1414 export const PriceDisplay = PriceDisplayComponent ;
15- export const ShopSignInGuard = ShopSignInGuardComponent ;
15+ export const SignInGuard = SignInGuardComponent ;
1616}
1717
1818export default ShopComponents ;
Original file line number Diff line number Diff line change @@ -5,21 +5,21 @@ import { ErrorBoundary, Suspense } from "@suspensive/react";
55
66import ShopHooks from "../hooks" ;
77
8- type ShopSignInGuardProps = {
8+ type SignInGuardProps = {
99 children : React . ReactNode ;
1010 fallback ?: React . ReactNode ;
1111} ;
1212
13- const InnerShopSignInGuard : React . FC < ShopSignInGuardProps > = ( { children, fallback } ) => {
13+ const InnerSignInGuard : React . FC < SignInGuardProps > = ( { children, fallback } ) => {
1414 const { data } = ShopHooks . useUserStatus ( ) ;
1515 const renderedFallback = fallback || < Typography variant = "h6" gutterBottom > 로그인 후 이용해주세요.</ Typography > ;
1616 return data ?. meta ?. is_authenticated === true ? children : renderedFallback ;
1717} ;
1818
19- export const ShopSignInGuard : React . FC < ShopSignInGuardProps > = ( { children, fallback } ) => {
19+ export const SignInGuard : React . FC < SignInGuardProps > = ( { children, fallback } ) => {
2020 return < ErrorBoundary fallback = { < > 로그인 정보를 불러오는 중 문제가 발생했습니다.</ > } >
2121 < Suspense fallback = { < CircularProgress /> } >
22- < InnerShopSignInGuard fallback = { fallback } > { children } </ InnerShopSignInGuard >
22+ < InnerSignInGuard fallback = { fallback } > { children } </ InnerSignInGuard >
2323 </ Suspense >
2424 </ ErrorBoundary >
2525} ;
You can’t perform that action at this time.
0 commit comments