Fix lint errors

This commit is contained in:
Nick Mowen 2022-01-14 07:44:56 -07:00
parent 77a9d44ddf
commit 330fdc6405
2 changed files with 14 additions and 14 deletions

View File

@ -118,7 +118,7 @@ export function useDelete() {
}
export function useRetain() {
const { dispatch, state } = useContext(Api);
const { state } = useContext(Api);
async function retainEvent(eventId, shouldRetain) {
if (!eventId) return null;

View File

@ -18,7 +18,7 @@ import { FetchStatus, useApiHost, useEvent, useDelete, useRetain } from '../api'
const ActionButtonGroup = ({ className, isRetained, handleClickRetain, handleClickDelete, close }) => (
<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 ? (
<Fragment>
<StarRecording className="w-6" />
@ -100,7 +100,7 @@ export default function Event({ eventId, close, scrollRef }) {
} catch (e) {
}
}, [eventId, setRetainEvent]);
}, [eventId, isRetained, setRetainEvent]);
const handleClickDelete = () => {
setShowDialog(true);