Skip to content

Conversation

@xyzelena
Copy link
Contributor

@xyzelena xyzelena marked this pull request as draft January 16, 2026 12:09
@github-actions
Copy link

github-actions bot commented Jan 16, 2026

Name Status Preview
xi.web ✔️Success✔️ Visit Preview

@xyzelena xyzelena marked this pull request as ready for review January 19, 2026 20:54

export const useGetParticipantsByStudent = (classroom_id: string, disabled?: boolean) => {
const { data, isError, isLoading, ...rest } = useFetching({
const queryResult = useFetching({
Copy link
Contributor

Choose a reason for hiding this comment

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

Немного странное решение убрать отсюда rest оператор

disabled={!isTutor && !isConferenceActive}
>
{isTutor ? 'Начать занятие' : 'Присоединиться'}{' '}
{isConferenceActive ? 'Присоединиться' : isTutor ? 'Начать занятие' : 'Присоединиться'}{' '}
Copy link
Contributor

Choose a reason for hiding this comment

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

Я не рекомендую использовать вложенные условные операторы, это делает код менее читабельным и простым, лучше вынести в функцию

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