Update CallPlayer.js

This commit is contained in:
Luke Berndt
2023-01-25 08:13:54 -05:00
parent 9d997cfa1b
commit a6de492047

View File

@@ -50,6 +50,7 @@ function CallPlayer(props) {
const {callLink,callDownload,callTweet} = useCallLink(currentCall)
const dispatch = useDispatch();
const stickyRef = useRef(); // lets us get the Y Scroll offset for the Call List
const positionRef = useRef(); // lets us get the Y Scroll offset for the Call List
const shouldPlayAddCallRef = useRef(); // we need to do this to make the current value of isPlaying available in the socket message callback
shouldPlayAddCallRef.current = (!isPlaying && autoPlay)?true:false;
@@ -120,8 +121,8 @@ function CallPlayer(props) {
return (
<>
<Container className="main" ref={positionRef}>
<div ref={positionRef}>
<Container className="main" >
<Sidebar.Pushable>
<Sidebar.Pusher
style={{ minHeight: '100vh' }}
@@ -148,7 +149,7 @@ function CallPlayer(props) {
</Menu.Menu>
</Menu>
</>
</div>
);
}