Skip to content

Commit

Permalink
Style: price tolocaleString() 적용
Browse files Browse the repository at this point in the history
  • Loading branch information
ssumai-kr committed Jul 16, 2024
1 parent 14ea335 commit 0728e99
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 5 deletions.
2 changes: 1 addition & 1 deletion components/KategorieDropdown/KategorieDropdown.tsx
Original file line number Diff line number Diff line change
@@ -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';
Expand Down
4 changes: 2 additions & 2 deletions components/Lander/AllActivities.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -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';
Expand Down Expand Up @@ -57,7 +57,7 @@ export function AllActivity({
{title}
</div>
<div className="font-sans text-[28px] text-[20px] font-[700] p:mt-[0px] mt-[15px]">
{price}{' '}
{price.toLocaleString()}{' '}
<span className="font-sans text-[16px] font-[400]">/ 인</span>
</div>
</div>
Expand Down
3 changes: 1 addition & 2 deletions components/Lander/BestActivities.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down Expand Up @@ -50,7 +49,7 @@ function BestActivity({
{title}
</div>
<div className="font-sans text-[20px] m:text-[16px] font-[700] absolute left-[20px] bottom-[39px] m:bottom-[24px] text-white">
{price} / 인
{price.toLocaleString()} / 인
</div>
</div>
);
Expand Down

0 comments on commit 0728e99

Please sign in to comment.