-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
354e4b2
commit ef11379
Showing
10 changed files
with
94 additions
and
124 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
11 changes: 6 additions & 5 deletions
11
src/app/(home)/_components/FestivalRecommend/RecommendFestivalHeader.tsx
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,9 +1,41 @@ | ||
"use client"; | ||
|
||
import { useQuery } from "@tanstack/react-query"; | ||
import { Session } from "next-auth"; | ||
import { FC } from "react"; | ||
|
||
import { getRecommendFestival } from "@/apis/festivals/recommendFestival/recommendFestival"; | ||
import { recommendFestivalKeys } from "@/apis/festivals/recommendFestival/recommendFestivalKeys"; | ||
import RecommendFestivalList from "@/components/Swiper/RecommendFestival/RecommendFestival"; | ||
|
||
const RecommendFestival = () => { | ||
return <RecommendFestivalList />; | ||
import RecommendFestivalFallbackUI from "./RecommendFestivalFallbackUI"; | ||
import RecommendFestivalSkeleton from "./RecommendFestivalSkeleton"; | ||
|
||
interface Props { | ||
session: Session | null; | ||
} | ||
|
||
const RecommendFestival: FC<Props> = ({ session }) => { | ||
const { data: recommendFestivals, isLoading } = useQuery({ | ||
queryKey: recommendFestivalKeys.user(session?.user.userId ?? 0), | ||
queryFn: () => getRecommendFestival(), | ||
retry: false, | ||
}); | ||
|
||
if (isLoading) { | ||
return <RecommendFestivalSkeleton />; | ||
} | ||
|
||
if (!session) { | ||
return <RecommendFestivalFallbackUI />; | ||
} | ||
|
||
return ( | ||
<RecommendFestivalList | ||
recommendFestivals={recommendFestivals} | ||
user={session.user} | ||
/> | ||
); | ||
}; | ||
|
||
export default RecommendFestival; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,35 @@ | ||
"use client"; | ||
|
||
import Link from "next/link"; | ||
|
||
import { BasicButton } from "@/components/core/Button"; | ||
import useUpdateUserSession from "@/hooks/session/useUpdateUserSession"; | ||
|
||
import OnboardingCompleteConfetti from "./_components/OnboardingCompleteConfetti"; | ||
import OnboardingImageDownloadButton from "./_components/OnboardingImageDownloadButton"; | ||
|
||
function OnBoardingCompleteView() { | ||
useUpdateUserSession(); | ||
return ( | ||
<section className="relative flex h-full w-full flex-col items-center justify-between gap-[30px] px-[16px] pb-[38px]"> | ||
<div /> | ||
|
||
<div className="flex h-full w-full flex-col items-center justify-center gap-[30px]"> | ||
<div className="flex w-full justify-center"> | ||
<h1 className="text-center text-title-bold text-gray-scale-900"> | ||
페스티벌 유형 프로필이 완성됐어요! | ||
</h1> | ||
</div> | ||
|
||
<OnboardingImageDownloadButton /> | ||
</div> | ||
|
||
<Link href="/" prefetch className="w-full"> | ||
<BasicButton type="button" label="맞춤 페스티벌 보러가기" /> | ||
</Link> | ||
<OnboardingCompleteConfetti /> | ||
</section> | ||
); | ||
} | ||
|
||
export default OnBoardingCompleteView; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,5 @@ | ||
"use client"; | ||
|
||
import { useSearchParams } from "next/navigation"; | ||
import { useEffect } from "react"; | ||
|
||
|