File tree Expand file tree Collapse file tree 3 files changed +7
-3
lines changed
_components/StoryDetailContent Expand file tree Collapse file tree 3 files changed +7
-3
lines changed Original file line number Diff line number Diff line change @@ -16,19 +16,20 @@ import { GNB } from "@/components/ui/GNB";
1616import { Text } from "@/components/ui/Text" ;
1717
1818import { storyDetailQueryOptions } from "../../_api" ;
19+ import { KAKAO_PLACE_URL , STORIES_LIMIT } from "../../_constants" ;
1920import * as styles from "./StoryDetailContent.css" ;
2021
2122type StoryDetailContentProps = {
2223 storyId : string ;
2324} ;
2425
25- const KAKAO_PLACE_URL = "https://place.map.kakao.com" ;
26-
2726export const StoryDetailContent = ( { storyId } : StoryDetailContentProps ) => {
2827 const router = useRouter ( ) ;
2928
3029 const { data : story } = useSuspenseQuery ( storyDetailQueryOptions ( storyId ) ) ;
31- const { data : storiesData } = useSuspenseQuery ( storiesQueryOptions ( 20 ) ) ;
30+ const { data : storiesData } = useSuspenseQuery (
31+ storiesQueryOptions ( STORIES_LIMIT )
32+ ) ;
3233
3334 const [ isDescriptionExpanded , setIsDescriptionExpanded ] = useState ( false ) ;
3435
Original file line number Diff line number Diff line change 1+ export * from "./storyDetail.constants" ;
Original file line number Diff line number Diff line change 1+ export const KAKAO_PLACE_URL = "https://place.map.kakao.com" ;
2+ export const STORIES_LIMIT = 20 ;
You can’t perform that action at this time.
0 commit comments