-
Notifications
You must be signed in to change notification settings - Fork 0
96: Add the current VKS status to the account card #95
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
base: main
Are you sure you want to change the base?
Conversation
|
|
|
||
| export const useGetParticipantsByStudent = (classroom_id: string, disabled?: boolean) => { | ||
| const { data, isError, isLoading, ...rest } = useFetching({ | ||
| const queryResult = useFetching({ |
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.
Немного странное решение убрать отсюда rest оператор
| disabled={!isTutor && !isConferenceActive} | ||
| > | ||
| {isTutor ? 'Начать занятие' : 'Присоединиться'}{' '} | ||
| {isConferenceActive ? 'Присоединиться' : isTutor ? 'Начать занятие' : 'Присоединиться'}{' '} |
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.
Я не рекомендую использовать вложенные условные операторы, это делает код менее читабельным и простым, лучше вынести в функцию
https://github.com/xi-effect/xi.progress/issues/96