Minor: remove a typecast from <CallingPip>
This commit is contained in:
parent
4c78a6c57f
commit
c7290309d3
2 changed files with 2 additions and 11 deletions
|
@ -38,7 +38,7 @@ export const CallingPip = ({
|
|||
setRendererCanvas,
|
||||
togglePip,
|
||||
}: PropsType): JSX.Element | null => {
|
||||
const videoContainerRef = React.useRef(null);
|
||||
const videoContainerRef = React.useRef<null | HTMLDivElement>(null);
|
||||
const localVideoRef = React.useRef(null);
|
||||
|
||||
const [dragState, setDragState] = React.useState({
|
||||
|
@ -144,7 +144,7 @@ export const CallingPip = ({
|
|||
if (!node) {
|
||||
return;
|
||||
}
|
||||
const rect = (node as HTMLElement).getBoundingClientRect();
|
||||
const rect = node.getBoundingClientRect();
|
||||
const offsetX = ev.clientX - rect.left;
|
||||
const offsetY = ev.clientY - rect.top;
|
||||
|
||||
|
|
|
@ -14423,15 +14423,6 @@
|
|||
"updated": "2020-10-26T19:12:24.410Z",
|
||||
"reasonDetail": "Used to get the local video element for rendering."
|
||||
},
|
||||
{
|
||||
"rule": "React-useRef",
|
||||
"path": "ts/components/CallingPip.tsx",
|
||||
"line": " const videoContainerRef = React.useRef(null);",
|
||||
"lineNumber": 41,
|
||||
"reasonCategory": "usageTrusted",
|
||||
"updated": "2020-10-26T19:12:24.410Z",
|
||||
"reasonDetail": "Element is measured. Its HTML is not used."
|
||||
},
|
||||
{
|
||||
"rule": "React-useRef",
|
||||
"path": "ts/components/CallingPip.tsx",
|
||||
|
|
Loading…
Add table
Reference in a new issue