lint fixes

This commit is contained in:
Blake Blackshear 2021-06-13 14:24:34 -05:00
parent 861ee0485d
commit 3aa7f753b3
2 changed files with 5 additions and 6 deletions

View File

@ -21,7 +21,6 @@ export default function JSMpegPlayer({ camera }) {
}, [url]); }, [url]);
return ( return (
<div ref={playerRef} class="jsmpeg"> <div ref={playerRef} class="jsmpeg" />
</div>
); );
} }

View File

@ -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>