mirror of
https://github.com/skooner-k8s/skooner.git
synced 2026-08-24 04:16:18 +00:00
Merge pull request #115 from ericblackburn/typescript
Updated filter.tsx to be compatible with inputFilter.tsx
This commit is contained in:
@@ -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>
|
||||
|
||||
|
||||
Reference in New Issue
Block a user