From ff73c70bfd877175ed1c769e55a3517e8b8ac037 Mon Sep 17 00:00:00 2001 From: sylenien Date: Tue, 24 May 2022 12:47:25 +0200 Subject: [PATCH] fix(ui): fix warnings for few components --- .../app/components/Session_/EventsBlock/EventGroupWrapper.js | 1 - frontend/app/components/Session_/Issues/IssuesModal.js | 4 ++-- frontend/app/components/Session_/Player/Controls/Timeline.js | 2 ++ 3 files changed, 4 insertions(+), 3 deletions(-) diff --git a/frontend/app/components/Session_/EventsBlock/EventGroupWrapper.js b/frontend/app/components/Session_/EventsBlock/EventGroupWrapper.js index 1a9814d74..a2ea53cb3 100644 --- a/frontend/app/components/Session_/EventsBlock/EventGroupWrapper.js +++ b/frontend/app/components/Session_/EventsBlock/EventGroupWrapper.js @@ -58,7 +58,6 @@ class EventGroupWrapper extends React.PureComponent { > { isFirst && isLocation && event.referrer &&
- {/* Referrer: { event.referrer } */} Referrer: { event.referrer } diff --git a/frontend/app/components/Session_/Issues/IssuesModal.js b/frontend/app/components/Session_/Issues/IssuesModal.js index 6808858ba..a1198f654 100644 --- a/frontend/app/components/Session_/Issues/IssuesModal.js +++ b/frontend/app/components/Session_/Issues/IssuesModal.js @@ -3,7 +3,7 @@ import stl from './issuesModal.module.css'; import IssueForm from './IssueForm'; import { Icon } from 'UI'; -const IssuesModal = React.forwardRef(({ +const IssuesModal = ({ sessionId, closeHandler, provider @@ -17,6 +17,6 @@ const IssuesModal = React.forwardRef(({
); -}) +} export default IssuesModal; diff --git a/frontend/app/components/Session_/Player/Controls/Timeline.js b/frontend/app/components/Session_/Player/Controls/Timeline.js index 74fcb9f63..a42aab3f1 100644 --- a/frontend/app/components/Session_/Player/Controls/Timeline.js +++ b/frontend/app/components/Session_/Player/Controls/Timeline.js @@ -182,6 +182,7 @@ export default class Timeline extends React.PureComponent { top: '-30px' //width: `${ 2000 * scale }%` } } + key={iss.key} className={ stl.clickRage } onClick={ this.createEventClickHandler(iss) } > @@ -203,6 +204,7 @@ export default class Timeline extends React.PureComponent { top: '-30px' //width: `${ 2000 * scale }%` } } + key={e.key} className={ stl.clickRage } onClick={ this.createEventClickHandler(e) } >