fix(ui): rm unused code
This commit is contained in:
parent
e3099bf93d
commit
5f5f47b06b
4 changed files with 4 additions and 6 deletions
|
|
@ -38,10 +38,8 @@ function PlayerContent({ live, fullscreen }) {
|
|||
}
|
||||
|
||||
function RightMenu({ showEvents, live, fullscreen }) {
|
||||
console.log(!live, !fullscreen, showEvents)
|
||||
return showEvents && !live && !fullscreen && <RightBlock />
|
||||
}
|
||||
|
||||
const ConnectedMenu = connectPlayer(state => ({
|
||||
showEvents: !state.showEvents}))(RightMenu)
|
||||
|
||||
|
|
|
|||
|
|
@ -12,7 +12,7 @@ function Autoplay(props) {
|
|||
useEffect(() => {
|
||||
props.setAutoplayValues()
|
||||
}, [])
|
||||
|
||||
console.log(previousId, nextId)
|
||||
return (
|
||||
<div className="flex items-center">
|
||||
<div onClick={props.toggleAutoplay} className="cursor-pointer flex items-center mr-2">
|
||||
|
|
|
|||
|
|
@ -16,6 +16,7 @@ import {
|
|||
LONGTASKS,
|
||||
INSPECTOR,
|
||||
} from 'Duck/components/player';
|
||||
import { setAutoplayValues } from 'Duck/sessions'
|
||||
import Player from './Player';
|
||||
import Network from './Network';
|
||||
import Console from './Console/Console';
|
||||
|
|
@ -28,7 +29,7 @@ import Fetch from './Fetch';
|
|||
import Exceptions from './Exceptions/Exceptions';
|
||||
import LongTasks from './LongTasks';
|
||||
import Inspector from './Inspector';
|
||||
import SubHeader from './Subheader';
|
||||
import SubHeader from './SubHeader';
|
||||
|
||||
import styles from './playerBlock.css';
|
||||
|
||||
|
|
@ -47,7 +48,7 @@ export default class PlayerBlock extends React.PureComponent {
|
|||
}
|
||||
|
||||
render() {
|
||||
const { fullscreen, bottomBlock, sessionId, disabled } = this.props;
|
||||
const { fullscreen, bottomBlock, sessionId, disabled, previousId, nextId, setAutoplayValues } = this.props;
|
||||
|
||||
return (
|
||||
<div className={ cn(styles.playerBlock, "flex flex-col") }>
|
||||
|
|
|
|||
|
|
@ -95,7 +95,6 @@ export default class PlayerBlockHeader extends React.PureComponent {
|
|||
const value = metadata[key];
|
||||
return { label: key, value };
|
||||
});
|
||||
console.log(session.toJS())
|
||||
|
||||
return (
|
||||
<div className={ cn(stl.header, "flex justify-between", { "hidden" : fullscreen}) }>
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue