File tree Expand file tree Collapse file tree 1 file changed +7
-4
lines changed
src/app/(store)/stores/[storeId]/_components/StoreStories Expand file tree Collapse file tree 1 file changed +7
-4
lines changed Original file line number Diff line number Diff line change @@ -10,21 +10,24 @@ import { Avatar } from "@/app/member/_components/Avatar";
1010import { storiesByKakaoIdQueryOptions } from "@/app/story/_api" ;
1111import CameraIcon from "@/assets/camera.svg" ;
1212import { Button } from "@/components/ui/Button" ;
13+ import { Skeleton } from "@/components/ui/Skeleton" ;
1314import { Spacer } from "@/components/ui/Spacer" ;
1415import { HStack , VStack } from "@/components/ui/Stack" ;
1516import { Text } from "@/components/ui/Text" ;
16- import { colors } from "@/styles" ;
17+ import { colors , radius } from "@/styles" ;
1718
1819import * as styles from "./StoreStories.css" ;
1920
2021export const StoreStories = ( { storeId } : { storeId : number } ) => {
2122 const router = useRouter ( ) ;
22- const { data : store } = useQuery ( storeDetailQueryOptions ( Number ( storeId ) ) ) ;
23+ const { data : store , isLoading } = useQuery (
24+ storeDetailQueryOptions ( Number ( storeId ) )
25+ ) ;
2326
24- if ( ! store ) {
27+ if ( ! store || isLoading ) {
2528 return (
2629 < VStack className = { styles . storeStoriesContainer } >
27- < Text > 가게 정보를 불러오는 중... </ Text >
30+ < Skeleton width = { 124 } height = { 220 } radius = { radius [ 160 ] } / >
2831 </ VStack >
2932 ) ;
3033 }
You can’t perform that action at this time.
0 commit comments