Merge pull request #115 from ericblackburn/typescript

Updated filter.tsx to be compatible with inputFilter.tsx
This commit is contained in:
Eric Herbrandson
2020-08-06 09:18:45 -05:00
committed by GitHub
+8 -2
View File
@@ -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) => (
<div id='header'>
<span className='header_label'>{text}</span>