Skip to content

Commit

Permalink
Merge pull request #472 from Kehinded/dev
Browse files Browse the repository at this point in the history
filter for both uppercase and lowercase input
  • Loading branch information
Davien21 authored Sep 9, 2021
2 parents 65db9c9 + fc770fd commit cfc29e2
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
4 changes: 2 additions & 2 deletions client/src/components/ToolsViewPage/ToolsView.js
Original file line number Diff line number Diff line change
Expand Up @@ -54,11 +54,11 @@ const setViewToolPage = async (text, reason) => {
}

const shuffleInstalledTools = (text) => {
return tools.filter((item) => item.installed && item.name.toLocaleLowerCase().search(text) != -1)
return tools.filter((item) => item.installed && item.name.toLowerCase().search(text.toLowerCase()) != -1)
}

const shuffleRecommendTools = (text) => {
return tools.filter((item) => item.installed === false && item.name.toLocaleLowerCase().search(text) != -1)
return tools.filter((item) => item.installed === false && item.name.toLowerCase().search(text.toLowerCase()) != -1)
}

const showInstallOrNoInstall = (check) => {
Expand Down
1 change: 1 addition & 0 deletions client/src/components/fragments/tools/Tools.module.css
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@
grid-template-columns: repeat(auto-fit, minmax(18rem, 19rem));
grid-gap: 1.3rem;
margin: 1rem 0rem;
justify-content: space-between;
}

@media only screen and (max-width:39em){
Expand Down

0 comments on commit cfc29e2

Please sign in to comment.