Skip to content

Commit

Permalink
Delete filter
Browse files Browse the repository at this point in the history
  • Loading branch information
dumbmatter committed Jul 9, 2024
1 parent 11fe68e commit 4261bc9
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 2 deletions.
2 changes: 0 additions & 2 deletions TODO
Original file line number Diff line number Diff line change
Expand Up @@ -30,8 +30,6 @@ advanced player search https://old.reddit.com/r/BasketballGM/comments/1d0xctc/vi
- ratings
- maybe share code with player graphs?
- why dropdown so small?
- no X in selectmultiple
- delete button
- some way to specify that you want previous season's stats for current players, like for free agents or in the preseason
- oldStats option kind of does this
- if range is 1 year only, then career/total should not be option, only single season
Expand Down
13 changes: 13 additions & 0 deletions src/ui/views/AdvancedPlayerSearch.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -197,6 +197,19 @@ const Filters = ({
});
}}
/>
<button
className="text-danger btn btn-link p-0 border-0"
onClick={() => {
setFilters(oldFilters => {
return oldFilters.filter((oldFilter, j) => i !== j);
});
}}
title="Delete filter"
style={{ fontSize: 20, marginTop: 3 }}
type="button"
>
<span className="glyphicon glyphicon-remove" />
</button>
</div>
</div>
);
Expand Down

0 comments on commit 4261bc9

Please sign in to comment.