fix(ui) - clear event filters
This commit is contained in:
parent
8ed8e72798
commit
f1fade81a3
1 changed files with 7 additions and 1 deletions
|
|
@ -1,9 +1,15 @@
|
|||
import React, { useState } from 'react'
|
||||
import React, { useState, useEffect } from 'react'
|
||||
import { Input, Icon } from 'UI'
|
||||
|
||||
export default function EventSearch(props) {
|
||||
const { onChange, clearSearch, value, header } = props;
|
||||
const [showSearch, setShowSearch] = useState(false)
|
||||
|
||||
useEffect(() => {
|
||||
return () => {
|
||||
clearSearch()
|
||||
}
|
||||
}, [])
|
||||
return (
|
||||
<div className="flex items-center w-full">
|
||||
<div className="flex flex-1 relative items-center" style={{ height: '32px' }}>
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue