Skip to content

Commit

Permalink
fix: homeTitle 퍼블리싱
Browse files Browse the repository at this point in the history
  • Loading branch information
cyeju committed Aug 20, 2023
1 parent 4a4336a commit a8e180d
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 7 deletions.
4 changes: 1 addition & 3 deletions src/hooks/home/useGetQuestionId.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down
5 changes: 2 additions & 3 deletions src/pages-edit/home/Home.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -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";
Expand All @@ -32,7 +32,6 @@ export default function Home() {
};

const { data, isLoading } = useGetQuestions();
console.log(data);

return isLoading ? undefined : (
<>
Expand Down Expand Up @@ -60,7 +59,7 @@ export default function Home() {
gutterHeight={14}
>
{data?.data?.map((data: any, idx: number) => {
return <QfeedFrame key={idx} idx={idx} data={data} />;
return <QFeedFrame key={idx} idx={idx} data={data} />;
})}
</StackGrid>

Expand Down
2 changes: 1 addition & 1 deletion src/pages-edit/home/components/HomeTitle.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ const HomeTitle = ({}: {}) => {
/>
</ImageWrapper>
</Menu>
<div style={{ display: "flex", margin: "auto 0", gap: "24px" }}>
<div style={{ display: "flex", gap: "24px", alignItems: "center" }}>
<Text
typo="Caption1b"
color="light_qwhite"
Expand Down

0 comments on commit a8e180d

Please sign in to comment.