Skip to content
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

Open
wants to merge 36 commits into
base: [email protected]
Choose a base branch
from

Conversation

danax7
Copy link
Contributor

@danax7 danax7 commented Apr 4, 2024

No description provided.

Copy link

vercel bot commented Apr 4, 2024

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated (UTC)
big-quest ✅ Ready (Inspect) Visit Preview 💬 Add feedback Jul 18, 2024 9:08am

<AcivityListCombobox
value={field.value}
className='w-full'
onSelect={(newValue) => form.setValue('activity', newValue ?? '')}
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

а зачем тут проверка ?? '' или это типизация такая?

Copy link
Contributor Author

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 }
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

вынести вне компонента в константу

Comment on lines 32 to 34
dateRange: {
from: undefined,
to: undefined
Copy link
Contributor

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);
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

лишний консоль

Comment on lines 7 to 11
export const postOrganizationAddSchedule = async ({
params: { organizationId, ...params },
config
}: PostOrganizationAddScheduleRequestConfig) =>
api.post(`organization/${organizationId}/add-schedule`, params, config);
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

а бэк под расписание готов сейчас? Тут неверное название, postOrganizationByOrganizationIdAddSchedule ну или если на бэке просто id postOrganizationByIdAddSchedule
Если будешь менять название не забуть сменить типы выше и мутацию

@debabin debabin changed the title Draft: feature/BQ-250 into [email protected] 🌊 added organizations activities table with add activity modal Draft: feature/BQ-250 into [email protected] 🌊 added organizations activities table with add activity modal Apr 13, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants