Skip to content

Commit

Permalink
fix: homepage settingpage잘 작동 (#232)
Browse files Browse the repository at this point in the history
  • Loading branch information
jisung24 authored Nov 29, 2023
1 parent da199b0 commit d99e32f
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 10 deletions.
17 changes: 8 additions & 9 deletions src/pages/home/HomePage.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -17,21 +17,20 @@ const HomePage = () => {
const { data, isLoading } = useQuery({
queryKey: ['children'],
queryFn: () => getChildrenInfo()
})

if (isLoading) {
return <Loading />
}

return (
<div
className={
'relative bg-white-100 w-full h-[750px] overflow-x-hidden overflow-y-scroll'
}>
<div className={'relative bg-white-100 h-[750px] overflow-hidden'}>
<SettingPage isOpen={toggleOpen} />
<>
<Spacing size={100} />
<div className={'flex flex-col items-center gap-[20px] pb-[20px]'}>
<div className={'h-[670px] overflow-y-scroll'}>
<Spacing size={80} />
<div
className={
'flex flex-col items-center gap-[20px] pb-[20px] pt-[20px] overflow-y-scroll h-[700px]'
}>
{data && data?.length > 0 ? (
data.map((data) => {
return (
Expand Down Expand Up @@ -70,7 +69,7 @@ const HomePage = () => {
}
/>
</div>
</>
</div>
</div>
)
}
Expand Down
2 changes: 1 addition & 1 deletion src/pages/likeAcademy/LikeAcademy.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -103,7 +103,7 @@ const LikeAcademy = () => {
/>
</li>
)
: ''}
)}

<div
className={
Expand Down

0 comments on commit d99e32f

Please sign in to comment.