mirror of
https://github.com/blakeblackshear/frigate.git
synced 2026-02-02 09:15:22 +03:00
Fix lint errors
This commit is contained in:
parent
77a9d44ddf
commit
330fdc6405
@ -118,7 +118,7 @@ export function useDelete() {
|
|||||||
}
|
}
|
||||||
|
|
||||||
export function useRetain() {
|
export function useRetain() {
|
||||||
const { dispatch, state } = useContext(Api);
|
const { state } = useContext(Api);
|
||||||
|
|
||||||
async function retainEvent(eventId, shouldRetain) {
|
async function retainEvent(eventId, shouldRetain) {
|
||||||
if (!eventId) return null;
|
if (!eventId) return null;
|
||||||
|
|||||||
@ -18,7 +18,7 @@ import { FetchStatus, useApiHost, useEvent, useDelete, useRetain } from '../api'
|
|||||||
|
|
||||||
const ActionButtonGroup = ({ className, isRetained, handleClickRetain, handleClickDelete, close }) => (
|
const ActionButtonGroup = ({ className, isRetained, handleClickRetain, handleClickDelete, close }) => (
|
||||||
<div className={`space-y-2 space-x-2 sm:space-y-0 xs:space-x-4 ${className}`}>
|
<div className={`space-y-2 space-x-2 sm:space-y-0 xs:space-x-4 ${className}`}>
|
||||||
<Button className="xs:w-auto" color={isRetained ? "red" : "yellow"} onClick={handleClickRetain}>
|
<Button className="xs:w-auto" color={isRetained ? 'red' : 'yellow'} onClick={handleClickRetain}>
|
||||||
{isRetained ? (
|
{isRetained ? (
|
||||||
<Fragment>
|
<Fragment>
|
||||||
<StarRecording className="w-6" />
|
<StarRecording className="w-6" />
|
||||||
@ -100,7 +100,7 @@ export default function Event({ eventId, close, scrollRef }) {
|
|||||||
} catch (e) {
|
} catch (e) {
|
||||||
|
|
||||||
}
|
}
|
||||||
}, [eventId, setRetainEvent]);
|
}, [eventId, isRetained, setRetainEvent]);
|
||||||
|
|
||||||
const handleClickDelete = () => {
|
const handleClickDelete = () => {
|
||||||
setShowDialog(true);
|
setShowDialog(true);
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user