diff --git a/frontend/app/components/Session_/Multiview/Multiview.tsx b/frontend/app/components/Session_/Multiview/Multiview.tsx index 455a5c254..420df0602 100644 --- a/frontend/app/components/Session_/Multiview/Multiview.tsx +++ b/frontend/app/components/Session_/Multiview/Multiview.tsx @@ -59,6 +59,7 @@ function Multiview({ }; const returnToList = () => { + assistMultiviewStore.reset() history.push(withSiteId(assist(), siteId)); }; @@ -85,7 +86,7 @@ function Multiview({
{/* @ts-ignore */} - +
{`Watching ${assistMultiviewStore.sessions.length} of ${total} Live Sessions`}
diff --git a/frontend/app/components/Session_/Player/Controls/AssistSessionsTabs/AssistSessionsTabs.tsx b/frontend/app/components/Session_/Player/Controls/AssistSessionsTabs/AssistSessionsTabs.tsx index 92ff70a22..a6735274a 100644 --- a/frontend/app/components/Session_/Player/Controls/AssistSessionsTabs/AssistSessionsTabs.tsx +++ b/frontend/app/components/Session_/Player/Controls/AssistSessionsTabs/AssistSessionsTabs.tsx @@ -1,6 +1,6 @@ import React from 'react'; import cn from 'classnames'; -import { Icon, Tooltip } from 'UI'; +import { Icon } from 'UI'; import { useStore } from 'App/mstore'; import { observer } from 'mobx-react-lite'; import { useHistory } from 'react-router-dom'; diff --git a/frontend/app/components/Session_/PlayerBlockHeader.tsx b/frontend/app/components/Session_/PlayerBlockHeader.tsx index 744db22cc..c1b45f36e 100644 --- a/frontend/app/components/Session_/PlayerBlockHeader.tsx +++ b/frontend/app/components/Session_/PlayerBlockHeader.tsx @@ -90,9 +90,9 @@ function PlayerBlockHeader(props: any) { {!hideBack && (
(isMultiview ? openGrid() : backHandler())} + onClick={() => (assistMultiviewStore.sessions.length > 1 || isMultiview ? openGrid() : backHandler())} > - {isMultiview ? ( + {assistMultiviewStore.sessions.length > 1 || isMultiview ? ( <>
diff --git a/frontend/app/mstore/assistMultiviewStore.ts b/frontend/app/mstore/assistMultiviewStore.ts index 2854d2b5e..e0895918f 100644 --- a/frontend/app/mstore/assistMultiviewStore.ts +++ b/frontend/app/mstore/assistMultiviewStore.ts @@ -115,5 +115,6 @@ export default class AssistMultiviewStore { reset() { this.sessions = []; this.activeSession = null; + this.onChangeCb = undefined } } diff --git a/frontend/tailwind.config.js b/frontend/tailwind.config.js index c6cb61fa5..8eaeab4e8 100644 --- a/frontend/tailwind.config.js +++ b/frontend/tailwind.config.js @@ -1,5 +1,7 @@ const colors = require('./app/theme/colors'); +const defaultColors = require('tailwindcss/colors') +console.log(defaultColors); module.exports = { // important: true, content: [ @@ -106,7 +108,10 @@ module.exports = { // 'zIndex' // ], theme: { - colors, + colors: { + ...defaultColors, + ...colors, + }, // borderColor: { // default: '#DDDDDD', // "gray-light-shade": colors["gray-light-shade"],