From 0728e99b146c6b469c804522d315a4070b876c35 Mon Sep 17 00:00:00 2001 From: Park Sumin Date: Tue, 16 Jul 2024 15:03:22 +0900 Subject: [PATCH] =?UTF-8?q?Style:=20price=20tolocaleString()=20=EC=A0=81?= =?UTF-8?q?=EC=9A=A9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- components/KategorieDropdown/KategorieDropdown.tsx | 2 +- components/Lander/AllActivities.tsx | 4 ++-- components/Lander/BestActivities.tsx | 3 +-- 3 files changed, 4 insertions(+), 5 deletions(-) diff --git a/components/KategorieDropdown/KategorieDropdown.tsx b/components/KategorieDropdown/KategorieDropdown.tsx index e84c034..72a06cf 100644 --- a/components/KategorieDropdown/KategorieDropdown.tsx +++ b/components/KategorieDropdown/KategorieDropdown.tsx @@ -1,4 +1,4 @@ -import React, { useEffect, useRef, useState } from 'react'; +import React, { useState } from 'react'; import Image from 'next/image'; import Down from '@/public/icon/chevron_down.svg'; import Up from '@/public/icon/chevron_up.svg'; diff --git a/components/Lander/AllActivities.tsx b/components/Lander/AllActivities.tsx index d07574e..d3fdc53 100644 --- a/components/Lander/AllActivities.tsx +++ b/components/Lander/AllActivities.tsx @@ -2,7 +2,7 @@ import Image from 'next/image'; import StarImg from '@/public/icon/Star.svg'; import CatergoryBtn from '../CatergoryBtn/CatergoryBtn'; import PriceFilterBtn from '../PriceFilterBtn/PriceFilterBtn'; -import { useState, useEffect } from 'react'; +import { useEffect } from 'react'; import { AllActivityProps } from './AllActivities.type'; import { getActivityList } from '@/pages/api/activities/apiactivities'; import { getActivityListResponse } from '@/pages/api/activities/apiactivities.types'; @@ -57,7 +57,7 @@ export function AllActivity({ {title}
- ₩{price}{' '} + ₩ {price.toLocaleString()}{' '} / 인
diff --git a/components/Lander/BestActivities.tsx b/components/Lander/BestActivities.tsx index c133e2f..8d3fca1 100644 --- a/components/Lander/BestActivities.tsx +++ b/components/Lander/BestActivities.tsx @@ -11,7 +11,6 @@ import { import { useQuery } from '@tanstack/react-query'; import { getActivityList } from '@/pages/api/activities/apiactivities'; import { useRouter } from 'next/router'; -import { useRecoilState } from 'recoil'; function BestActivity({ title, @@ -50,7 +49,7 @@ function BestActivity({ {title}
- {price} / 인 + ₩ {price.toLocaleString()} / 인
);