From 05cecd77e1416734e1c98312b98f2e912537e414 Mon Sep 17 00:00:00 2001 From: Matthew Stratford Date: Mon, 8 Feb 2021 20:23:59 +0000 Subject: [PATCH] Add a mark as played button. --- src/showplanner/index.tsx | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/src/showplanner/index.tsx b/src/showplanner/index.tsx index cdef911..6733da1 100644 --- a/src/showplanner/index.tsx +++ b/src/showplanner/index.tsx @@ -8,6 +8,7 @@ import { FaCircleNotch, FaPencilAlt, FaHeadphonesAlt, + FaCircle, } from "react-icons/fa"; import { MYRADIO_NON_API_BASE, TimeslotItem } from "../api"; @@ -234,6 +235,15 @@ const Showplanner: React.FC<{ timeslotId: number }> = function({ timeslotId }) { > Mark Unplayed + + dispatch( + setItemPlayed({ itemId: (args.props as any).id, played: true }) + ) + } + > + Mark Played + { dispatch(