Skip to content

Commit

Permalink
Style: 포인트 표기 형식 변경 (ex) 50000 -> 50,000
Browse files Browse the repository at this point in the history
  • Loading branch information
Diwoni committed Oct 17, 2024
1 parent ed23ad5 commit c9a3324
Show file tree
Hide file tree
Showing 5 changed files with 6 additions and 7 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -98,8 +98,8 @@ const ButtonBox = styled(Box)`
display: flex;
align-items: center;
justify-content: center;
width: 49%;
max-width: 169px;
width: 165px;
max-width: 165px;
height: 70px;
font-size: 18px;
font-weight: 600;
Expand Down
1 change: 0 additions & 1 deletion src/pages/guard/mypage/store/api/guard-information.api.ts
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,5 @@ export const getGuardInformationQueryKey = ['guardInformation'];
export const getGuardInformation =
async (): Promise<GuardInformationResponse> => {
const response = await fetchInstance.get(getGuardInformationPath());
console.log(response.data);
return response.data;
};
4 changes: 2 additions & 2 deletions src/shared/api/instance/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ import type {
} from 'axios';
import axios from 'axios';

import { BASE_URI } from '@/shared/constants';
// import { BASE_URI } from '@/shared/constants';
import { QueryClient } from '@tanstack/react-query';

const initInstance = (config: AxiosRequestConfig): AxiosInstance => {
Expand All @@ -25,7 +25,7 @@ const initInstance = (config: AxiosRequestConfig): AxiosInstance => {
};

export const fetchInstance = initInstance({
baseURL: BASE_URI,
baseURL: 'http://sinitto.site:8080',
});

export const queryClient = new QueryClient({
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,7 @@ const PointBox = () => {
fontSize='18px'
fontWeight={700}
>
{pointData?.price} 포인트
{pointData?.price.toLocaleString()} 포인트
</Box>
{actionType ? (
<Box display='flex' flexDir='column' alignItems='center'>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ const PointLogBox = () => {
<TextLayout>
<DetailText>{item.content}</DetailText>
<DetailText display='flex' justifyContent='flex-end' mr={2}>
{item.price}
{item.price.toLocaleString()}
</DetailText>
</TextLayout>
</DetailTextBox>
Expand Down

0 comments on commit c9a3324

Please sign in to comment.