File tree Expand file tree Collapse file tree 1 file changed +23
-13
lines changed Expand file tree Collapse file tree 1 file changed +23
-13
lines changed Original file line number Diff line number Diff line change @@ -58,19 +58,29 @@ const Browse = () => {
58
58
< ItemLoading orientation = 'horizontal' withButtonLink = { true } />
59
59
</ >
60
60
) : (
61
- services . map ( service => (
62
- < Item
63
- key = { service . id }
64
- item = { service }
65
- withButtonLink = { true }
66
- buttonLink = { service . href }
67
- orientation = 'horizontal'
68
- buttonProps = { {
69
- backgroundColor : buttonBg ,
70
- label : 'Request this item' ,
71
- } }
72
- />
73
- ) )
61
+ < >
62
+ { ( services . length > 0 ) ? (
63
+ < >
64
+ { services . map ( service => (
65
+ < Item
66
+ key = { service . id }
67
+ item = { service }
68
+ withButtonLink = { true }
69
+ buttonLink = { service . href }
70
+ orientation = 'horizontal'
71
+ buttonProps = { {
72
+ backgroundColor : buttonBg ,
73
+ label : 'Request this item' ,
74
+ } }
75
+ />
76
+ ) ) }
77
+ </ >
78
+ ) : (
79
+ < p >
80
+ Your search for < b > { query } </ b > returned no results. Please try another search term.
81
+ </ p >
82
+ ) }
83
+ </ >
74
84
)
75
85
}
76
86
</ div >
You can’t perform that action at this time.
0 commit comments