-
Notifications
You must be signed in to change notification settings - Fork 1
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Draft: feature/BQ-250 into [email protected] 🌊 added organizations activities table with add activity modal #40
base: [email protected]
Are you sure you want to change the base?
Conversation
…c in schedule component
…eview workingHours
The latest updates on your projects. Learn more about Vercel for Git ↗︎
|
<AcivityListCombobox | ||
value={field.value} | ||
className='w-full' | ||
onSelect={(newValue) => form.setValue('activity', newValue ?? '')} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
а зачем тут проверка ?? ''
или это типизация такая?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Вообще, типизация такая
'3': { time: { from: '09:00', to: '18:00' }, dayOff: false }, | ||
'4': { time: { from: '09:00', to: '18:00' }, dayOff: false }, | ||
'5': { time: { from: '09:00', to: '18:00' }, dayOff: false }, | ||
'6': { time: { from: '09:00', to: '18:00' }, dayOff: true } |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
вынести вне компонента в константу
dateRange: { | ||
from: undefined, | ||
to: undefined |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
а undefined точно нужно указывать? Мб просто необязательные поля можно не вставлять здесь
const postOrganizationAddSchedule = usePostOrganizationAddScheduleMutation(); | ||
|
||
const onSubmit = addScheduleForm.handleSubmit(async (values) => { | ||
console.log(values); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
лишний консоль
...chedule/components/AddScheduleDialog/components/AddScheduleForm/hooks/useAddScheduleForm.tsx
Outdated
Show resolved
Hide resolved
export const postOrganizationAddSchedule = async ({ | ||
params: { organizationId, ...params }, | ||
config | ||
}: PostOrganizationAddScheduleRequestConfig) => | ||
api.post(`organization/${organizationId}/add-schedule`, params, config); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
а бэк под расписание готов сейчас? Тут неверное название, postOrganizationByOrganizationIdAddSchedule
ну или если на бэке просто id postOrganizationByIdAddSchedule
Если будешь менять название не забуть сменить типы выше и мутацию
No description provided.