@@ -136,12 +178,10 @@ export function TableFilter({ columns, filter, onApply, onClose }: TableFilterPr
onUpdate={handleUpdate}
onColumnChange={handleColumnChange}
onRemove={handleRemove}
- onApply={handleApply}
- onToggleLogical={handleToggleLogical}
/>
))}
-
+
Add filter
-
- {filter !== null && (
-
- )}
-
-
)
-}
+})
interface FilterRuleRowProps {
rule: FilterRule
@@ -180,8 +205,6 @@ interface FilterRuleRowProps {
onUpdate: (id: string, field: keyof FilterRule, value: string) => void
onColumnChange: (id: string, columnId: string) => void
onRemove: (id: string) => void
- onApply: () => void
- onToggleLogical: (id: string) => void
}
const FilterRuleRow = memo(function FilterRuleRow({
@@ -192,8 +215,6 @@ const FilterRuleRow = memo(function FilterRuleRow({
onUpdate,
onColumnChange,
onRemove,
- onApply,
- onToggleLogical,
}: FilterRuleRowProps) {
// Keep a stale column id selectable/visible (e.g. after the column was
// removed) instead of falling back to the placeholder while the rule still
@@ -226,12 +247,9 @@ const FilterRuleRow = memo(function FilterRuleRow({
{isFirst ? (