From d9429926c9ba30e9a41b9b48180469a9d94701ca Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=D0=90=D0=BD=D0=B4=D1=80=D0=B5=D0=B9=20=D0=91=D0=B0=D0=B1?= =?UTF-8?q?=D1=83=D1=88=D0=BA=D0=B8=D0=BD?= Date: Mon, 5 May 2025 16:40:05 +0200 Subject: [PATCH] removed consoles --- .../Session_/EventsBlock/EventGroupWrapper.tsx | 5 +---- .../app/components/Session_/EventsBlock/EventsBlock.tsx | 9 ++------- .../components/Session_/Player/Controls/EventsList.tsx | 2 +- frontend/app/types/session/event.ts | 2 +- 4 files changed, 5 insertions(+), 13 deletions(-) diff --git a/frontend/app/components/Session_/EventsBlock/EventGroupWrapper.tsx b/frontend/app/components/Session_/EventsBlock/EventGroupWrapper.tsx index 39975aa94..92f89bcea 100644 --- a/frontend/app/components/Session_/EventsBlock/EventGroupWrapper.tsx +++ b/frontend/app/components/Session_/EventsBlock/EventGroupWrapper.tsx @@ -11,7 +11,7 @@ import NoteEvent from './NoteEvent'; import stl from './eventGroupWrapper.module.css'; import { useTranslation } from 'react-i18next'; -const EventGroupWrapper = (props: any) => { +function EventGroupWrapper(props) { const { userStore } = useStore(); const currentUserId = userStore.account.id; @@ -19,9 +19,6 @@ const EventGroupWrapper = (props: any) => { const onCheckboxClick = (e) => props.onCheckboxClick(e, props.event); - console.log('tick'); - - const { event, isLastEvent, diff --git a/frontend/app/components/Session_/EventsBlock/EventsBlock.tsx b/frontend/app/components/Session_/EventsBlock/EventsBlock.tsx index a2cf37b93..643673bf7 100644 --- a/frontend/app/components/Session_/EventsBlock/EventsBlock.tsx +++ b/frontend/app/components/Session_/EventsBlock/EventsBlock.tsx @@ -139,9 +139,7 @@ function EventsBlock(props: IProps) { useEffect(() => { setCurrentTimeEventIndex(findLastFitting(time)); - console.log('CUURENT TIME EVENT INDEX'); }, []) - // const currentTimeEventIndex = findLastFitting(time); const write = ({ target: { value }, @@ -314,10 +312,7 @@ function EventsBlock(props: IProps) { {t('No Matching Results')} )} - {usedEvents.map((_, i) => { - return renderGroup({ index: i }); - })} - {/* { return renderGroup({ index: i }); })} - */} + ); diff --git a/frontend/app/components/Session_/Player/Controls/EventsList.tsx b/frontend/app/components/Session_/Player/Controls/EventsList.tsx index d86e1ba36..0465f149f 100644 --- a/frontend/app/components/Session_/Player/Controls/EventsList.tsx +++ b/frontend/app/components/Session_/Player/Controls/EventsList.tsx @@ -1,4 +1,4 @@ -import React, { useContext, useEffect } from 'react'; +import React, { useContext } from 'react'; import { PlayerContext, MobilePlayerContext, diff --git a/frontend/app/types/session/event.ts b/frontend/app/types/session/event.ts index a853fc791..2eeb568c4 100644 --- a/frontend/app/types/session/event.ts +++ b/frontend/app/types/session/event.ts @@ -182,7 +182,7 @@ export class Click extends Event { selector: string; - isHighlighted: boolean = false; + isHighlighted: boolean | undefined = false; constructor(evt: ClickEvent, isClickRage?: boolean) { super(evt);