From baf8a842ea3f88230d8b6350826b1f742fccee9e Mon Sep 17 00:00:00 2001 From: Eric Blackburn Date: Wed, 5 Aug 2020 20:25:11 -0500 Subject: [PATCH] Updated filter.tsx to be compatible with inputFilter.tsx --- client/src/components/filter.tsx | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/client/src/components/filter.tsx b/client/src/components/filter.tsx index a2db56b..32989ac 100644 --- a/client/src/components/filter.tsx +++ b/client/src/components/filter.tsx @@ -2,8 +2,14 @@ import React from 'react'; import InputFilter from './inputFilter'; import NamespaceFilter from './namespaceFilter'; -const Filter = ({text, filter, onChange, onNamespaceChange}: {text?: string, filter?: string, onChange?: Function, onNamespaceChange?: Function } -) => ( +type FilterProps = { + text: string; + filter: string; + onChange: (value: string) => void; + onNamespaceChange?: Function; +} + +const Filter = ({text, filter, onChange, onNamespaceChange}: FilterProps) => (