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) => (