Skip to content

Commit

Permalink
Merge pull request #550 from dragon-slayer875/universalFilterfix
Browse files Browse the repository at this point in the history
UniversalFilter: update universal filter props to include variant
  • Loading branch information
nebula-aac authored Mar 15, 2024
2 parents 04cf89d + 669de1b commit 617d759
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/custom/UniversalFilter.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@ export interface UniversalFilterProps {
filters: Record<string, FilterColumn>;
selectedFilters: Record<string, string>;
setSelectedFilters: React.Dispatch<React.SetStateAction<Record<string, string>>>;
variant: 'filled' | 'standard' | 'outlined';
handleApplyFilter: () => void;
showAllOption?: boolean;
id: string;
Expand All @@ -28,6 +29,7 @@ function UniversalFilter({
filters,
selectedFilters,
setSelectedFilters,
variant = 'outlined',
handleApplyFilter,
showAllOption = true,
id
Expand Down Expand Up @@ -104,6 +106,7 @@ function UniversalFilter({
defaultValue="All"
key={filterColumn}
value={selectedFilters[filterColumn]}
variant={variant}
onChange={(e: SelectChangeEvent<unknown>) =>
handleFilterChange(
e as React.ChangeEvent<{ value: string }>,
Expand Down

0 comments on commit 617d759

Please sign in to comment.