Skip to content

Commit dbb4436

Browse files
Merge pull request #56 from learnsoftwaredevelopment/improve-search-menu-item-information
Amended main search bar platform menu item information to show proper casing
2 parents c66b9df + 296e7ae commit dbb4436

File tree

2 files changed

+5
-4
lines changed

2 files changed

+5
-4
lines changed

package-lock.json

Lines changed: 3 additions & 3 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

src/components/mainSearchBar/MainSearchBar.component.jsx

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@ import { InputGroup } from 'react-bootstrap';
55
import { AsyncTypeahead } from 'react-bootstrap-typeahead';
66
import { AiOutlineSearch } from 'react-icons/ai';
77
import { useHistory } from 'react-router-dom';
8+
import { parseSoftwarePlatform } from '../../utils/utils';
89

910
const MainSearchBar = () => {
1011
const cacheRef = useRef({});
@@ -104,7 +105,7 @@ const MainSearchBar = () => {
104105
<div key={option.id}>
105106
<span>{_.startCase(option.name)}</span>
106107
<div>
107-
<small>{`Version: ${option.version} Platform: ${option.platform}`}</small>
108+
<small>{`Version: ${option.version} Platform: ${parseSoftwarePlatform(option.platform)}`}</small>
108109
</div>
109110
</div>
110111
)}

0 commit comments

Comments
 (0)