Skip to content

Commit

Permalink
fix: axios 파일 수정 (#86)
Browse files Browse the repository at this point in the history
Co-authored-by: wukddang <[email protected]>
  • Loading branch information
wukdddang and wukdddang authored Nov 2, 2023
1 parent 8b394e0 commit 3bb3694
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 9 deletions.
9 changes: 1 addition & 8 deletions src/apis/test.ts
Original file line number Diff line number Diff line change
@@ -1,12 +1,5 @@
import axios from 'axios'

export const testWithBtn = async (nickname: string) => {
return axios.get(`http://13.125.194.230/api/v1/users/duplicate`, {
headers: {
'Referrer-Policy': 'no-referrer', // 또는 필요에 따라 다른 값
},
params: {
nickname,
},
})
return axios.get(`http://13.125.194.230/api/v1/users/duplicate?nickname=${nickname}`)
}
16 changes: 15 additions & 1 deletion src/pages/profile/ProfileDefault.tsx
Original file line number Diff line number Diff line change
@@ -1,5 +1,19 @@
import { useNavigate } from 'react-router-dom'

const ProfileDefault = () => {
return <div>{'ProfileDefault'}</div>
const navigate = useNavigate()

return (
<div>
<button
onClick={() => {
navigate('/profile/edit')
}}
>
{'프로필 수정으로 이동'}
</button>
</div>
)
}

export default ProfileDefault

0 comments on commit 3bb3694

Please sign in to comment.