Skip to content

Commit

Permalink
chore(frontend): rename "None" to "Clear"
Browse files Browse the repository at this point in the history
closes #1755
  • Loading branch information
anupcowkur committed Jan 22, 2025
1 parent 5394fd4 commit fb050e8
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions frontend/dashboard/app/components/dropdown_select.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,7 @@ const DropdownSelect: React.FC<DropdownSelectProps> = ({ title, type, items, ini
setSelected(items)
};

const selectNone = () => {
const clearAll = () => {
setSelected([])
};

Expand Down Expand Up @@ -260,10 +260,10 @@ const DropdownSelect: React.FC<DropdownSelectProps> = ({ title, type, items, ini
</button>
<div className="px-1" />
<button
onClick={() => selectNone()}
onClick={() => clearAll()}
className={groupSelectButtonStyle}
>
None
Clear
</button>
</div>}
{items.filter((item) => (item as string).toLocaleLowerCase().includes(searchText.toLocaleLowerCase())).map((item) => (
Expand Down Expand Up @@ -318,10 +318,10 @@ const DropdownSelect: React.FC<DropdownSelectProps> = ({ title, type, items, ini
</button>
<div className="px-1" />
<button
onClick={() => selectNone()}
onClick={() => clearAll()}
className={groupSelectButtonStyle}
>
None
Clear
</button>
</div>}
{items.filter((item) => (item as OsVersion).displayName.toLocaleLowerCase().includes(searchText.toLocaleLowerCase())).map((item, idx) => (
Expand Down

0 comments on commit fb050e8

Please sign in to comment.