Skip to content

Commit

Permalink
fix lint issues
Browse files Browse the repository at this point in the history
  • Loading branch information
rithviknishad committed Aug 28, 2024
1 parent 550d710 commit ea2ffb4
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 7 deletions.
2 changes: 1 addition & 1 deletion src/Components/CameraFeed/CameraFeed.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -234,7 +234,7 @@ export default function CameraFeed(props: Props) {
playsInline
onPlay={player.onPlayCB}
onEnded={() => player.setStatus("stop")}
ref={playerRef as LegacyRef<HTMLVideoElement>}
ref={playerRef as LegacyRef<HTMLVideoElement>}
/>

{inlineControls && player.status === "playing" && controls}
Expand Down
6 changes: 1 addition & 5 deletions src/Components/CameraFeed/CameraFeedOld.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -7,10 +7,7 @@ import {
deleteAssetBed,
} from "../../Redux/actions.js";
import { CameraPTZ, getCameraPTZ } from "../../Common/constants.js";
import {
StreamStatus,
useMSEMediaPlayer,
} from "./useMSEplayer.js";
import { StreamStatus, useMSEMediaPlayer } from "./useMSEplayer.js";
import { useFeedPTZ } from "./useFeedPTZ.js";
import * as Notification from "../../Utils/Notifications.js";
import { AxiosError } from "axios";
Expand All @@ -22,7 +19,6 @@ import Page from "../Common/components/Page.js";
import ConfirmDialog from "../Common/ConfirmDialog.js";
import { FieldLabel } from "../Form/FormFields/FormField.js";
import useFullscreen from "../../Common/hooks/useFullscreen.js";
import { isIOS } from "../../Utils/utils.js";
import TextFormField from "../Form/FormFields/TextFormField.js";

export const FeedCameraPTZHelpButton = (props: { cameraPTZ: CameraPTZ[] }) => {
Expand Down
2 changes: 1 addition & 1 deletion src/Components/CameraFeed/usePlayer.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ export default function usePlayer(
},
});
},
[ref.current, streamUrl,],
[ref.current, streamUrl],
);

const onPlayCB = () => {
Expand Down

0 comments on commit ea2ffb4

Please sign in to comment.