mirror of
https://github.com/blakeblackshear/frigate.git
synced 2024-11-21 19:07:46 +01:00
lint fixes
This commit is contained in:
parent
861ee0485d
commit
3aa7f753b3
@ -21,7 +21,6 @@ export default function JSMpegPlayer({ camera }) {
|
||||
}, [url]);
|
||||
|
||||
return (
|
||||
<div ref={playerRef} class="jsmpeg">
|
||||
</div>
|
||||
<div ref={playerRef} class="jsmpeg" />
|
||||
);
|
||||
}
|
||||
|
@ -82,14 +82,14 @@ export default function Camera({ camera }) {
|
||||
) : null;
|
||||
|
||||
let player;
|
||||
if (viewMode == 'live') {
|
||||
if (viewMode === 'live') {
|
||||
player = <>
|
||||
<div>
|
||||
<JSMpegPlayer camera={camera} />
|
||||
</div>
|
||||
</>;
|
||||
}
|
||||
else if (viewMode == 'debug') {
|
||||
else if (viewMode === 'debug') {
|
||||
player = <>
|
||||
<div>
|
||||
<AutoUpdatingCameraImage camera={camera} searchParams={searchParams} />
|
||||
@ -110,10 +110,10 @@ export default function Camera({ camera }) {
|
||||
<Heading size="2xl">{camera}</Heading>
|
||||
<div>
|
||||
<nav className="flex justify-end">
|
||||
<button onClick={() => setViewMode('live')} className={viewMode == 'live' ? `text-gray-600 py-0 px-4 block hover:text-gray-500 focus:outline-none border-b-2 font-medium border-gray-500` : `text-gray-600 py-0 px-4 block hover:text-gray-500`}>
|
||||
<button onClick={() => setViewMode('live')} className={viewMode === 'live' ? 'text-gray-600 py-0 px-4 block hover:text-gray-500 focus:outline-none border-b-2 font-medium border-gray-500' : 'text-gray-600 py-0 px-4 block hover:text-gray-500'}>
|
||||
Live
|
||||
</button>
|
||||
<button onClick={() => setViewMode('debug')} className={viewMode == 'debug' ? `text-gray-600 py-0 px-4 block hover:text-gray-500 focus:outline-none border-b-2 font-medium border-gray-500` : `text-gray-600 py-0 px-4 block hover:text-gray-500`}>
|
||||
<button onClick={() => setViewMode('debug')} className={viewMode === 'debug' ? 'text-gray-600 py-0 px-4 block hover:text-gray-500 focus:outline-none border-b-2 font-medium border-gray-500' : 'text-gray-600 py-0 px-4 block hover:text-gray-500'}>
|
||||
Debug
|
||||
</button>
|
||||
</nav>
|
||||
|
Loading…
Reference in New Issue
Block a user