Skip to content

Commit

Permalink
(#87) ๐Ÿš€ feat: ์ถ”์ฒœ ๊ฒฐ๊ณผ์—์„œ ๋ฌธํ™” ํŽ˜์ด์ง€๋กœ ์ด๋™์‹œ ์Šคํƒ€๋””์›€์„ ์ฟผ๋ฆฌ ํŒŒ๋ผ๋ฏธํ„ฐ๋กœ ์ „๋‹ฌ
Browse files Browse the repository at this point in the history
  • Loading branch information
inaemon committed Nov 30, 2024
1 parent 23d07df commit 7f236bc
Showing 1 changed file with 28 additions and 13 deletions.
41 changes: 28 additions & 13 deletions src/pages/Recommend/Result.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -156,18 +156,6 @@ const Page = ({/*stadium,*/ resultId, setResultId}: Props) => {
});
}

/////////////////////////////////////////////
// ์ถ”์ฒœ ๋‹ค์‹œ ๋ฐ›๊ธฐ ๋ฒ„ํŠผ ํด๋ฆญ ์‹œ ๋ฆฌ๋‹ค์ด๋ ‰ํŠธ ์ด๋ฒคํŠธ
const handleRedirectToRecommendation = () => {
// ์ถ”์ฒœ ๋‹ค์‹œ ๋ฐ›๊ธฐ ํŽ˜์ด์ง€๋กœ ๋ฆฌ๋‹ค์ด๋ ‰ํŠธ
router.push({
pathname: '/recommend/question', // ๋ฆฌ๋‹ค์ด๋ ‰ํŠธํ•  ๊ฒฝ๋กœ
query: { // ์ฟผ๋ฆฌ ํŒŒ๋ผ๋ฏธํ„ฐ ์ „๋‹ฌ
stadiumName: selectedStadium,
},
});
};


/////////////////////////////////////////////
// ์˜ˆ๋งคํ•˜๋Ÿฌ ๊ฐ€๊ธฐ ๋ฒ„ํŠผ ํด๋ฆญ ์‹œ ๋ชจ๋‹ฌ์ฐฝ ๋„์šฐ๊ธฐ ์ด๋ฒคํŠธ
Expand All @@ -186,6 +174,33 @@ const Page = ({/*stadium,*/ resultId, setResultId}: Props) => {
*/


/////////////////////////////////////////////
// ์ถ”์ฒœ ๋‹ค์‹œ ๋ฐ›๊ธฐ ๋ฒ„ํŠผ ํด๋ฆญ ์‹œ ๋ฆฌ๋‹ค์ด๋ ‰ํŠธ ์ด๋ฒคํŠธ
const handleRedirectToRecommendation = () => {
// ์ถ”์ฒœ ๋‹ค์‹œ ๋ฐ›๊ธฐ ํŽ˜์ด์ง€๋กœ ๋ฆฌ๋‹ค์ด๋ ‰ํŠธ
router.push({
pathname: '/recommend/question', // ๋ฆฌ๋‹ค์ด๋ ‰ํŠธํ•  ๊ฒฝ๋กœ
query: { // ์ฟผ๋ฆฌ ํŒŒ๋ผ๋ฏธํ„ฐ ์ „๋‹ฌ
stadiumName: selectedStadium,
},
});
};


/////////////////////////////////////////////
// ๋ฌธํ™” ํŽ˜์ด์ง€๋กœ ์ด๋™ ๋ฒ„ํŠผ ํด๋ฆญ ์‹œ ๋ฆฌ๋‹ค์ด๋ ‰ํŠธ ์ด๋ฒคํŠธ
const handleRedirectToCulture = () => {
// ์ถ”์ฒœ ๋‹ค์‹œ ๋ฐ›๊ธฐ ํŽ˜์ด์ง€๋กœ ๋ฆฌ๋‹ค์ด๋ ‰ํŠธ
router.push({
pathname: '/culture', // ๋ฆฌ๋‹ค์ด๋ ‰ํŠธํ•  ๊ฒฝ๋กœ
query: { // ์ฟผ๋ฆฌ ํŒŒ๋ผ๋ฏธํ„ฐ ์ „๋‹ฌ
stadiumName: selectedStadium,
},
});
};



/////////////////////////////////////////////
// ๋ฐ˜์‘ํ˜• ์ด๋ฒคํŠธ
const { isSmall, isMedium, isLarge, isExtraLarge } = useScreenWidth();
Expand Down Expand Up @@ -388,7 +403,7 @@ const Page = ({/*stadium,*/ resultId, setResultId}: Props) => {
{/* ์ดํ›„์— ์ž ์‹ค, KT ์•ผ๊ตฌ์žฅ ๊ฐ๊ฐ ๋‹ค๋ฅด๊ฒŒ ์„ค์ • ํ•„์š” */}
<div
className="bg-main-10 rounded-[8px] cursor-pointer w-full py-3"
onClick={() => window.location.href = "/culture"}
onClick={handleRedirectToCulture}
>
<p className="text-md text-main-60 font-semibold">
์ง๊ด€ ํ•„์ˆ˜ ์ฝ”์Šค, ํ•œ๋ˆˆ์— ์‚ดํŽด๋ณด๊ธฐ!
Expand Down

0 comments on commit 7f236bc

Please sign in to comment.