Refactored Rating component

Separated annDetails, added to userPage, made actually operating
This commit is contained in:
2023-08-08 18:36:47 +03:00
parent f432193508
commit d9925647c6
9 changed files with 124 additions and 114 deletions

View File

@ -11,10 +11,11 @@ function useSendRate() {
processSendRate,
)
const doSendRate = (rate: number) => (
const doSendRate = (rate: number, user_id: number) => (
doSend({}, {
body: JSON.stringify({
rate,
user_id,
}),
headers: {
'Content-Type': 'application/json',