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]);
|
}, [url]);
|
||||||
|
|
||||||
return (
|
return (
|
||||||
<div ref={playerRef} class="jsmpeg">
|
<div ref={playerRef} class="jsmpeg" />
|
||||||
</div>
|
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
@ -82,14 +82,14 @@ export default function Camera({ camera }) {
|
|||||||
) : null;
|
) : null;
|
||||||
|
|
||||||
let player;
|
let player;
|
||||||
if (viewMode == 'live') {
|
if (viewMode === 'live') {
|
||||||
player = <>
|
player = <>
|
||||||
<div>
|
<div>
|
||||||
<JSMpegPlayer camera={camera} />
|
<JSMpegPlayer camera={camera} />
|
||||||
</div>
|
</div>
|
||||||
</>;
|
</>;
|
||||||
}
|
}
|
||||||
else if (viewMode == 'debug') {
|
else if (viewMode === 'debug') {
|
||||||
player = <>
|
player = <>
|
||||||
<div>
|
<div>
|
||||||
<AutoUpdatingCameraImage camera={camera} searchParams={searchParams} />
|
<AutoUpdatingCameraImage camera={camera} searchParams={searchParams} />
|
||||||
@ -110,10 +110,10 @@ export default function Camera({ camera }) {
|
|||||||
<Heading size="2xl">{camera}</Heading>
|
<Heading size="2xl">{camera}</Heading>
|
||||||
<div>
|
<div>
|
||||||
<nav className="flex justify-end">
|
<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
|
Live
|
||||||
</button>
|
</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
|
Debug
|
||||||
</button>
|
</button>
|
||||||
</nav>
|
</nav>
|
||||||
|
Loading…
Reference in New Issue
Block a user