From 1f3394f5085172abb05706a161c44e645ce7029f Mon Sep 17 00:00:00 2001 From: Shekar Siri Date: Thu, 19 Aug 2021 13:27:38 +0530 Subject: [PATCH] fix(ui) - bookmarking --- .../components/Session_/PlayerBlockHeader.js | 17 +++++------------ 1 file changed, 5 insertions(+), 12 deletions(-) diff --git a/frontend/app/components/Session_/PlayerBlockHeader.js b/frontend/app/components/Session_/PlayerBlockHeader.js index 0d0294ea3..dee980e00 100644 --- a/frontend/app/components/Session_/PlayerBlockHeader.js +++ b/frontend/app/components/Session_/PlayerBlockHeader.js @@ -53,21 +53,16 @@ export default class PlayerBlockHeader extends React.PureComponent { ); backHandler = () => { - const { funnelRef, history, siteId } = this.props; + const { history, siteId } = this.props; if (history.action !== 'POP') history.goBack(); else - history.push(withSiteId(SESSIONS_ROUTE), siteId); - // if (funnelRef) { - // history.push(withSiteId(funnelIssueRoute(funnelRef.funnelId, funnelRef.issueId), funnelRef.siteId)); - // } else { - // history.push(withSiteId(SESSIONS_ROUTE), siteId); - // } + history.push(withSiteId(SESSIONS_ROUTE), siteId); } toggleFavorite = () => { const { session } = this.props; - this.props.toggleFavorite(session); + this.props.toggleFavorite(session.sessionId); } render() { @@ -123,8 +118,7 @@ export default class PlayerBlockHeader extends React.PureComponent { tooltip="Bookmark" onClick={ this.toggleFavorite } loading={ loading } - icon={ favorite ? 'star-solid' : 'star' } - // label={ favorite ? 'Favourited' : 'Favourite' } + icon={ favorite ? 'star-solid' : 'star' } plain /> }