push
github
1384 of 2803 branches covered (49.38%)
0 of 691 new or added lines in 17 files covered. (0.0%)
14014 of 78513 relevant lines covered (17.85%)
1.77 hits per line
NEW
|
import type { IFilterSet } from '@teable/core'; |
|
NEW
|
import { FilterMain } from '@teable/sdk/components'; |
× |
NEW
|
import { useFields } from '@teable/sdk/hooks'; |
× |
NEW
|
|
× |
NEW
|
export const FilterBuilder = ({ |
× |
NEW
|
filter, |
× |
NEW
|
onChange, |
× |
NEW
|
}: { |
× |
NEW
|
filter: IFilterSet | null;
|
× |
NEW
|
onChange: (filter: IFilterSet | null) => void; |
× |
NEW
|
}) => { |
× |
NEW
|
const fields = useFields({ withHidden: true, withDenied: true }); |
× |
NEW
|
|
× |
NEW
|
return <FilterMain filters={filter} onChange={onChange} fields={fields} />;
|
× |
NEW
|
}; |
× |