@@ -7,7 +7,7 @@ import { uploadImages } from './image';
77const getOAuthUrl = ( ) => {
88 const host = window . location . hostname ;
99 if ( host === 'codemonster.site' ) {
10- return 'https://api.codemonster.site/oauth2/authorization/kakao' ;
10+ return 'https://api.test. codemonster.site/oauth2/authorization/kakao' ;
1111 }
1212 if ( host === 'test.codemonster.site' ) {
1313 return 'https://api.test.codemonster.site/oauth2/authorization/kakao' ;
@@ -17,14 +17,9 @@ const getOAuthUrl = () => {
1717
1818export const kakaoOauth2LoginUrl = getOAuthUrl ( ) ;
1919
20- type ProfileCommonArgs = {
21- memberName : string ;
22- memberExplain : string ;
23- } ;
20+ type ProfileCommonArgs = { memberName : string ; memberExplain : string } ;
2421
25- type ProfileMutationArgs = ProfileCommonArgs & {
26- image : File | null ;
27- } ;
22+ type ProfileMutationArgs = ProfileCommonArgs & { image : File | null } ;
2823
2924export type ProfileQueryResp = ProfileCommonArgs & {
3025 imageUrl : string ;
@@ -46,15 +41,8 @@ export const createProfile = async ({
4641 imageUrl = uploadedUrls [ 0 ] ;
4742 }
4843
49- const body : {
50- memberName : string ;
51- memberExplain : string ;
52- imageUrl ?: string ;
53- } = {
54- memberName,
55- memberExplain,
56- ...( imageUrl && { imageUrl } ) ,
57- } ;
44+ const body : { memberName : string ; memberExplain : string ; imageUrl ?: string } =
45+ { memberName, memberExplain, ...( imageUrl && { imageUrl } ) } ;
5846
5947 const res = await apiInstance . post ( '/v1/members' , body ) ;
6048
@@ -76,15 +64,8 @@ export const changeProfile = async ({
7664 imageUrl = uploadedUrls [ 0 ] ;
7765 }
7866
79- const body : {
80- memberName : string ;
81- memberExplain : string ;
82- imageUrl ?: string ;
83- } = {
84- memberName,
85- memberExplain,
86- ...( imageUrl && { imageUrl } ) ,
87- } ;
67+ const body : { memberName : string ; memberExplain : string ; imageUrl ?: string } =
68+ { memberName, memberExplain, ...( imageUrl && { imageUrl } ) } ;
8869
8970 const res = await apiInstance . put ( '/v1/members' , body ) ;
9071
@@ -113,11 +94,7 @@ export const logout = async () => {
11394 return res . data ;
11495} ;
11596
116- type TeamAbsInfo = {
117- teamId : number ;
118- teamName : string ;
119- teamImageUrl : string ;
120- } ;
97+ type TeamAbsInfo = { teamId : number ; teamName : string ; teamImageUrl : string } ;
12198
12299type MemberInfoResp = {
123100 memberName : string ;
0 commit comments