-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'feat/#123' into develop
- Loading branch information
Showing
6 changed files
with
181 additions
and
52 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
import { generateApiPath } from '@/utils/generateApiPath'; | ||
import { authApi } from '../axios-instance'; | ||
import { API_DOMAINS } from '@/constants/api'; | ||
|
||
export const patchUserDetail = async ({ data }) => { | ||
const response = await authApi.patch(API_DOMAINS.PATCH_USER, data, { | ||
headers: { | ||
'Content-Type': 'application/json', | ||
}, | ||
}); | ||
|
||
return response.data.data; | ||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
import { path } from '@/routes/path'; | ||
import { useNavigate } from 'react-router-dom'; | ||
import notification from '@/assets/imgs/notification.svg'; | ||
import notification_true from '@/assets/imgs/notification_true.svg'; | ||
|
||
export const NotificationButton = ({ isNotification }) => { | ||
const navigate = useNavigate(); | ||
return ( | ||
<button | ||
className="cursor-pointer" | ||
onClick={() => navigate(path.notificationList)} | ||
> | ||
<img | ||
src={isNotification ? notification_true : notification} | ||
alt="notification button" | ||
className="w-5 h-6" | ||
/> | ||
</button> | ||
); | ||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,3 @@ | ||
// 더미 데이터 | ||
const Nations = [ | ||
{ name: 'Saudi Arabia', code: 'SA' }, | ||
{ name: 'Bulgaria', code: 'BG' }, | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters