File tree Expand file tree Collapse file tree 1 file changed +4
-2
lines changed
src/pages/cart/CartContent Expand file tree Collapse file tree 1 file changed +4
-2
lines changed Original file line number Diff line number Diff line change @@ -7,6 +7,8 @@ import { useCartItem } from '../hooks/useCartItem';
7
7
import { useNavigate } from 'react-router-dom' ;
8
8
import { ROUTES } from '@/shared/config/routes' ;
9
9
import { calculatePaymentAmount } from '@/shared/utils/orderPricing' ;
10
+ import LoadingContainer from '@/shared/components/LoadingContainer/LoadingContainer' ;
11
+ import ErrorContainer from '@/shared/components/ErrorContainer/ErrorContainer' ;
10
12
11
13
export default function CartContent ( ) {
12
14
const {
@@ -24,11 +26,11 @@ export default function CartContent() {
24
26
const navigate = useNavigate ( ) ;
25
27
26
28
if ( isLoading && ! cartItems ?. length ) {
27
- return < div > 로딩중 </ div > ;
29
+ return < LoadingContainer / >;
28
30
}
29
31
30
32
if ( errorMessage ) {
31
- return < div > 에러남 </ div > ;
33
+ return < ErrorContainer errorMessage = { errorMessage } / >;
32
34
}
33
35
34
36
if ( ! cartItems ?. length ) {
You can’t perform that action at this time.
0 commit comments