Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
I
inventory-promotion-react
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Ascend
inventory-promotion-react
Commits
d44bc804
Commit
d44bc804
authored
May 10, 2021
by
Khai Yuan Liew
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[AFP-12] Fix issue with search on searchResults page
parent
565f3c48
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
6 additions
and
1 deletion
+6
-1
ProductGrid.jsx
src/component/ProductGrid.jsx
+1
-1
Search.jsx
src/component/Search.jsx
+5
-0
No files found.
src/component/ProductGrid.jsx
View file @
d44bc804
...
...
@@ -19,7 +19,7 @@ export default function ProductGrid({ productData }) {
useEffect
(()
=>
fetchProducts
(),
[]);
return
(
<
div
class=
"container flex-column d-flex justify-content-center"
>
<
div
class
Name
=
"container flex-column d-flex justify-content-center"
>
<
div
className=
"container mt-3 d-flex justify-content-between align-items-center"
>
<
h1
id=
"title"
className=
"text-center"
>
Inventory
...
...
src/component/Search.jsx
View file @
d44bc804
...
...
@@ -34,6 +34,11 @@ class Search extends React.Component {
this
.
setState
({
results
:
res
});
})
.
catch
(
err
=>
console
.
log
(
err
));
if
(
this
.
props
.
location
.
pathname
===
"/searchResults"
){
this
.
props
.
history
.
push
(
"/products"
,
this
.
state
);
}
this
.
props
.
history
.
push
(
"/searchResults"
,
this
.
state
);
}
...
...
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