-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge remote-tracking branch 'origin/feat/70-UI-refactor' into feat/#69
- Loading branch information
Showing
8 changed files
with
485 additions
and
202 deletions.
There are no files selected for viewing
This file was deleted.
Oops, something went wrong.
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,33 @@ | ||
import { useMutation } from "@tanstack/react-query"; | ||
import { apiClient } from "../instance"; | ||
|
||
interface FcmUpdateRequest { | ||
token: string; | ||
isNotificatioinEnabled?: boolean; | ||
notificationOffset?: number; | ||
} | ||
|
||
interface FcmUpdateResponse { | ||
message: string; | ||
} | ||
|
||
const useFcmUpdate = () => { | ||
return useMutation<FcmUpdateResponse, Error, FcmUpdateRequest>({ | ||
mutationFn: async (data: FcmUpdateRequest) => { | ||
const response = await apiClient.put<FcmUpdateResponse>( | ||
"/api/fcm/update", | ||
{ | ||
token: data.token, | ||
isNotificationEnabled: data.isNotificatioinEnabled ?? true, | ||
notificationOffset: data.notificationOffset ?? 0, | ||
}, | ||
); | ||
return response.data; | ||
}, | ||
onError: (error) => { | ||
console.error("FCM ν ν° μ λ°μ΄νΈ μ€ν¨:", error); | ||
}, | ||
}); | ||
}; | ||
|
||
export default useFcmUpdate; |
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,43 +0,0 @@ | ||
.custom-datepicker-wrapper { | ||
position: relative; | ||
z-index: 100; | ||
} | ||
|
||
.custom-calendar { | ||
border: 1px solid #ddd !important; | ||
font-family: -apple-system, system-ui, "Segoe UI", Roboto, Helvetica, Arial, sans-serif; | ||
} | ||
|
||
/* μκ° μ ν 컨ν μ΄λ μ€νμΌ */ | ||
.react-datepicker__time-container { | ||
border-left: 1px solid #ddd !important; | ||
width: 100px !important; | ||
display: block !important; | ||
} | ||
|
||
.react-datepicker { | ||
display: flex !important; | ||
} | ||
|
||
.react-datepicker__time-box { | ||
width: 100px !important; | ||
margin: 0 !important; | ||
} | ||
|
||
/* μκ° λ¦¬μ€νΈ μ€νμΌ */ | ||
.react-datepicker__time-list { | ||
height: 200px !important; | ||
overflow-y: scroll !important; | ||
width: 100% !important; | ||
} | ||
|
||
.react-datepicker__time-list-item { | ||
padding: 5px 10px !important; | ||
height: auto !important; | ||
} | ||
|
||
/* μ νλ μκ° μ€νμΌ */ | ||
.react-datepicker__time-list-item--selected { | ||
background-color: #216ba5 !important; | ||
color: white !important; | ||
} | ||
Oops, something went wrong.