From a8e180d388065778a3a44fddd9f599a863aac796 Mon Sep 17 00:00:00 2001 From: cyeju Date: Sun, 20 Aug 2023 15:59:30 +0900 Subject: [PATCH] =?UTF-8?q?fix:=20homeTitle=20=ED=8D=BC=EB=B8=94=EB=A6=AC?= =?UTF-8?q?=EC=8B=B1?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/hooks/home/useGetQuestionId.ts | 4 +--- src/pages-edit/home/Home.tsx | 5 ++--- src/pages-edit/home/components/HomeTitle.tsx | 2 +- 3 files changed, 4 insertions(+), 7 deletions(-) diff --git a/src/hooks/home/useGetQuestionId.ts b/src/hooks/home/useGetQuestionId.ts index 53821ea..3dd5f1d 100644 --- a/src/hooks/home/useGetQuestionId.ts +++ b/src/hooks/home/useGetQuestionId.ts @@ -7,9 +7,7 @@ export const useGetQuestionsId = ({ id }: any) => { async () => { const params: any = {}; const result = await getQuestionsId(id); - const choices = await getQuestionsIdChoices(id); - console.log("A"); - return { info: result, choices: choices }; + return result; }, { staleTime: 1000 * 60 * 5, diff --git a/src/pages-edit/home/Home.tsx b/src/pages-edit/home/Home.tsx index 741f069..b0325b0 100644 --- a/src/pages-edit/home/Home.tsx +++ b/src/pages-edit/home/Home.tsx @@ -5,7 +5,7 @@ import BottomNavigation from "src/components/BottomNavigation"; import BasicQuestion from "src/pages-edit/home/components/BasicQuestion"; import Filter from "./components/Filter"; import HomeTitle from "src/pages-edit/home/components/HomeTitle"; -import QfeedFrame from "./components/QfeedFrame"; +import QFeedFrame from "./components/QfeedFrame"; import Spacing from "src/components/Spacing"; import { colors } from "styles/theme"; import { Route } from "src/constants/Route"; @@ -32,7 +32,6 @@ export default function Home() { }; const { data, isLoading } = useGetQuestions(); - console.log(data); return isLoading ? undefined : ( <> @@ -60,7 +59,7 @@ export default function Home() { gutterHeight={14} > {data?.data?.map((data: any, idx: number) => { - return ; + return ; })} diff --git a/src/pages-edit/home/components/HomeTitle.tsx b/src/pages-edit/home/components/HomeTitle.tsx index 4af9c59..f14037f 100644 --- a/src/pages-edit/home/components/HomeTitle.tsx +++ b/src/pages-edit/home/components/HomeTitle.tsx @@ -36,7 +36,7 @@ const HomeTitle = ({}: {}) => { /> -
+