Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
0517356
GL PROJ
Commits
9133c10d
Commit
9133c10d
authored
Jun 22, 2021
by
Thomas
Browse files
no message
parent
fbe5d01c
Changes
1
Hide whitespace changes
Inline
Side-by-side
TraCloSo/scr/Home.js
View file @
9133c10d
...
...
@@ -110,7 +110,7 @@ export default function Home({ navigation }) {
const
[
search
,
setSearch
]
=
useState
(
''
);
const
searchFilterFunction
=
(
text
)
=>
{
//
Check if searched text is not blank
//
search function for A-Z
if
(
selectedIndex
==
0
)
{
if
(
text
)
{
// Inserted text is not blank
...
...
@@ -132,6 +132,7 @@ export default function Home({ navigation }) {
setSearch
(
text
);
}
}
// search function for Highest
else
if
(
selectedIndex
==
1
)
{
if
(
text
)
{
// Inserted text is not blank
...
...
@@ -152,6 +153,7 @@ export default function Home({ navigation }) {
setFilteredDataSourceHighest
(
masterDataSourceHighest
);
setSearch
(
text
);
}
// serach function for only sporting brands
}
else
{
if
(
text
)
{
// Inserted text is not blank
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment