From 330fdc6405903e20f87676c5d78aa7bee6788ce0 Mon Sep 17 00:00:00 2001 From: Nick Mowen Date: Fri, 14 Jan 2022 07:44:56 -0700 Subject: [PATCH] Fix lint errors --- web/src/api/index.jsx | 2 +- web/src/routes/Event.jsx | 26 +++++++++++++------------- 2 files changed, 14 insertions(+), 14 deletions(-) diff --git a/web/src/api/index.jsx b/web/src/api/index.jsx index 8e73891c4..a2f7d1d75 100644 --- a/web/src/api/index.jsx +++ b/web/src/api/index.jsx @@ -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; diff --git a/web/src/routes/Event.jsx b/web/src/routes/Event.jsx index a2e1a2f89..bbfe2bba4 100644 --- a/web/src/routes/Event.jsx +++ b/web/src/routes/Event.jsx @@ -18,18 +18,18 @@ import { FetchStatus, useApiHost, useEvent, useDelete, useRetain } from '../api' const ActionButtonGroup = ({ className, isRetained, handleClickRetain, handleClickDelete, close }) => (
-