From c32896d410060c8c965bd38ef3415833269094d0 Mon Sep 17 00:00:00 2001 From: Max Goodhart Date: Tue, 30 Jun 2020 16:14:36 -0700 Subject: [PATCH] Include city and state in control view stream description Resolves #22. --- src/web/control.js | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/src/web/control.js b/src/web/control.js index 15d9f4e..61dc8b5 100644 --- a/src/web/control.js +++ b/src/web/control.js @@ -332,12 +332,16 @@ function StreamDelayBox({ delayState, setStreamCensored }) { function StreamLine({ id, - row: { label, source, title, link, notes }, + row: { label, source, title, link, notes, state, city }, onClickId, }) { const handleClickId = useCallback(() => { onClickId(id) }) + let location + if (state && city) { + location = ` (${city} ${state}) ` + } return ( {id} @@ -346,7 +350,8 @@ function StreamLine({ label ) : ( <> - {source}{' '} + {source} + {location} {title || link} {' '}