From 22b0fe0758ccd81b16b02f97398978a0c622bbce Mon Sep 17 00:00:00 2001 From: Mac Cowell Date: Wed, 13 Jan 2021 20:13:52 -0800 Subject: [PATCH] very rough click Entity -> filter Transcript ui --- src/client/components/Dashboard.js | 12 ++++++++++-- 1 file changed, 10 insertions(+), 2 deletions(-) diff --git a/src/client/components/Dashboard.js b/src/client/components/Dashboard.js index 7c0c937..468336a 100644 --- a/src/client/components/Dashboard.js +++ b/src/client/components/Dashboard.js @@ -26,10 +26,14 @@ const ALL_ENTITIES_QUERY = gql` ` const RECENT_SENTENCES_QUERY = gql` - query RECENT_SENTENCES_QUERY($after: String!) { + query RECENT_SENTENCES_QUERY( + $after: String!, + $relatedTo: String) { sentences ( after: $after + relatedTo: $relatedTo ) { + id content createdAt } @@ -156,7 +160,11 @@ class Dashboard extends React.Component {