Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
F
foundation1-gcp
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
Syed Bilal Raees
foundation1-gcp
Commits
e0197eb2
Commit
e0197eb2
authored
Jan 05, 2023
by
Muneeb Saeed
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Css added for facets
parent
27dd9978
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
5 additions
and
2 deletions
+5
-2
search-results.css
ulta-beauty/src/components/search-results.css
+4
-0
search-results.js
ulta-beauty/src/components/search-results.js
+1
-1
search.js
ulta-beauty/src/components/search.js
+0
-1
No files found.
ulta-beauty/src/components/search-results.css
View file @
e0197eb2
.verticalCheckBox
>
.ant-checkbox-wrapper
{
display
:
flex
;
margin-inline-start
:
0
;
}
.verticalCheckBox
{
display
:
block
;
}
\ No newline at end of file
ulta-beauty/src/components/search-results.js
View file @
e0197eb2
...
...
@@ -83,7 +83,7 @@ const SearchResults = ({ searchResults, facets, onSelectFacet, onSelectFilter })
{
facets
.
length
>
0
&&
facets
.
map
((
facet
,
i
)
=>
<
Collapse
ghost
>
<
Panel
header
=
{
facetMap
.
get
(
facet
.
key
)}
key
=
{
i
}
style
=
{{
fontSize
:
'0.9rem'
,
color
:
'#000000 '
}}
>
<
Checkbox
.
Group
className
=
"verticalCheckBox"
options
=
{[...
facet
.
values
.
map
((
f
)
=>
({
label
:
f
.
value
,
value
:
f
.
value
})
)]}
<
Checkbox
.
Group
className
=
{
'verticalCheckBox'
}
options
=
{[...
facet
.
values
.
map
((
f
)
=>
({
label
:
f
.
value
,
value
:
f
.
value
})
)]}
onChange
=
{(
val
)
=>
onChangeCheckboxHandler
(
val
,
facet
.
key
)}
/
>
<
/Panel
>
<
/Collapse
>
...
...
ulta-beauty/src/components/search.js
View file @
e0197eb2
...
...
@@ -24,7 +24,6 @@ const Search = () => {
const
{
searchQuery
,
facets
,
filters
}
=
payload
;
if
(
searchQuery
)
{
const
apiEndpoint
=
'https://api-dot-abs-poc-np-prj-01-3f2a.uc.r.appspot.com'
;
// const apiEndpoint = 'http://localhost:8080';
const
url
=
`
${
apiEndpoint
}
/search?text=
${
searchQuery
}${
facets
.
length
?
`&facets=
${
JSON
.
stringify
(
facets
)}
`
:
''
}${
filters
&&
Object
.
keys
(
filters
).
length
?
`&filters=
${
JSON
.
stringify
(
filters
)}
`
:
''
}
`
;
const
searchResults
=
await
fetch
(
url
)
.
then
(
res
=>
res
.
json
())
...
...
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