Skip to content

Commit

Permalink
feat: add mark filter name
Browse files Browse the repository at this point in the history
  • Loading branch information
guz86 committed Sep 24, 2024
1 parent e437d6c commit ae8af6e
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion app/src/components/Filters/Filters.css
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,7 @@
}

.dropdown-item {
padding: 7px 12px 7px 12px;
padding: 7px 12px;
cursor: pointer;
}

Expand Down
6 changes: 3 additions & 3 deletions app/src/components/Filters/Filters.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -71,19 +71,19 @@ const Filters: React.FC<FiltersProps> = ({ onFilterChange }) => {
{isMenuOpen && (
<div className="dropdown-menu">
<div
className="dropdown-item"
className={`dropdown-item ${currentFilter === 'Все типы' ? 'active-filter' : ''}`}
onClick={() => handleFilterChange('')}
>
Все типы
</div>
<div
className="dropdown-item"
className={`dropdown-item ${currentFilter === 'Входящие' ? 'active-filter' : ''}`}
onClick={() => handleFilterChange('1')}
>
Входящие
</div>
<div
className="dropdown-item"
className={`dropdown-item ${currentFilter === 'Исходящие' ? 'active-filter' : ''}`}
onClick={() => handleFilterChange('0')}
>
Исходящие
Expand Down

0 comments on commit ae8af6e

Please sign in to comment.