Skip to content

Commit

Permalink
[AUD-79] Tmap API 엔드포인트를 올바른 값으로 수정 (#47)
Browse files Browse the repository at this point in the history
* 🐛 Tmap API 엔드포인트를 올바르게 수정

* 🎨 Prettier 코드 베이스에 일괄 적용

* 🐛 Git Merge Conflict 사항 해결
  • Loading branch information
RookieAND authored Feb 24, 2024
1 parent 9150f87 commit 0716d90
Show file tree
Hide file tree
Showing 8 changed files with 21 additions and 19 deletions.
8 changes: 6 additions & 2 deletions src/apis/tmap/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ export const TmapRepository = {
TmapResponseType['getVehiclePath'],
TmapRequestParamsType['getVehiclePath']
>(
'/paths',
'/routes',
{
startX,
startY,
Expand All @@ -39,6 +39,7 @@ export const TmapRepository = {
version: 1,
format: 'json',
},
withCredentials: false,
},
);
},
Expand All @@ -57,7 +58,7 @@ export const TmapRepository = {
TmapResponseType['getPedestrianPath'],
TmapRequestParamsType['getPedestrianPath']
>(
'/paths/pedestrian',
'/routes/pedestrian',
{
startX,
startY,
Expand All @@ -78,6 +79,7 @@ export const TmapRepository = {
version: 1,
format: 'json',
},
withCredentials: false,
},
);
},
Expand All @@ -101,6 +103,7 @@ export const TmapRepository = {
callback: 'result',
keyInfo: 'Y',
},
withCredentials: false,
});

return response.addressInfo;
Expand Down Expand Up @@ -130,6 +133,7 @@ export const TmapRepository = {
count: limit,
searchType: 'name',
},
withCredentials: false,
},
);
},
Expand Down
2 changes: 1 addition & 1 deletion src/hooks/useDebounce.ts
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ export const useDebounce = () => {
(...args: Parameters<T>) => {
clearTimeout(timer.current);
timer.current = setTimeout(() => {
callback(...args)
callback(...args);
}, delay);
},
[],
Expand Down
3 changes: 1 addition & 2 deletions src/hooks/useIntersectionObserver.ts
Original file line number Diff line number Diff line change
Expand Up @@ -24,8 +24,7 @@ export const useIntersectionObserver = <T extends HTMLElement>({
observer.observe(targetRef.current);

return () => observer.disconnect();

}, [root, rootMargin, threshold, onIntersect]);

return { targetRef }
return { targetRef };
};
15 changes: 7 additions & 8 deletions src/styles/global.css.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { globalStyle, globalFontFace } from '@vanilla-extract/css';
import { globalFontFace, globalStyle } from '@vanilla-extract/css';

import { theme } from '@/styles/theme.css';

Expand Down Expand Up @@ -61,30 +61,29 @@ globalStyle('ol, ul', {
globalFontFace(theme.font.pretendard, {
src: "url('/fonts/Pretendard-Black.subset.woff2') format('woff2')",
fontWeight: 800,
})
});

globalFontFace(theme.font.pretendard, {
src: "url('/fonts/Pretendard-ExtraBold.subset.woff2') format('woff2')",
fontWeight: 700,
})

});

globalFontFace(theme.font.pretendard, {
src: "url('/fonts/Pretendard-Bold.subset.woff2') format('woff2')",
fontWeight: 600,
})
});

globalFontFace(theme.font.pretendard, {
src: "url('/fonts/Pretendard-SemiBold.subset.woff2') format('woff2')",
fontWeight: 500,
})
});

globalFontFace(theme.font.pretendard, {
src: "url('/fonts/Pretendard-Medium.subset.woff2') format('woff2')",
fontWeight: 400,
})
});

globalFontFace(theme.font.pretendard, {
src: "url('/fonts/Pretendard-Regular.subset.woff2') format('woff2')",
fontWeight: 300,
})
});
4 changes: 2 additions & 2 deletions src/styles/theme.css.ts
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
import { createGlobalTheme } from '@vanilla-extract/css';

import { FONT, COLOR, MEDIA_QUERY } from './foundation';
import { COLOR, FONT, MEDIA_QUERY } from './foundation';

export const theme = createGlobalTheme(':root', {
font: FONT,
color: COLOR,
mediaQuery: MEDIA_QUERY
mediaQuery: MEDIA_QUERY,
});
2 changes: 1 addition & 1 deletion src/types/auth.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,4 +5,4 @@ export interface UserType {
email: string;
username: string;
imageUrl: string;
}
}
4 changes: 2 additions & 2 deletions src/types/course.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import type { PinType } from "./map";
import type { PinType } from './map';

export interface CourseInformationType {
id: string;
Expand All @@ -20,6 +20,6 @@ export interface CourseDetailType {
courseId: number;
courseName: string;
pinList: PinType[];
};
}

export type CourseTabType = 'allCourse' | 'myCourse' | 'invitedCourse';
2 changes: 1 addition & 1 deletion src/types/util.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
export type PaginationType = {
page?: number;
limit?: number;
}
};

0 comments on commit 0716d90

Please sign in to comment.