Skip to content

Commit

Permalink
fix(classic-theme): remove pointer cursor on no result item content (#…
Browse files Browse the repository at this point in the history
…529)

* fix(classic-theme): remove pointer cursor on no result item content

* fix(classic-theme): remove unnecessary wrapper
  • Loading branch information
sarahdayan authored Apr 14, 2021
1 parent 32bd2bc commit b241df4
Show file tree
Hide file tree
Showing 5 changed files with 5 additions and 13 deletions.
4 changes: 1 addition & 3 deletions cypress/test-apps/js/app.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -112,9 +112,7 @@ autocomplete({
);
},
noResults() {
return (
<div className="aa-ItemContent">No products for this query.</div>
);
return 'No products for this query.';
},
},
},
Expand Down
4 changes: 1 addition & 3 deletions examples/playground/app.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -114,9 +114,7 @@ autocomplete({
);
},
noResults() {
return (
<div className="aa-ItemContent">No products for this query.</div>
);
return 'No products for this query.';
},
},
},
Expand Down
4 changes: 1 addition & 3 deletions examples/query-suggestions-with-hits/app.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -95,9 +95,7 @@ autocomplete({
);
},
noResults() {
return (
<div className="aa-ItemContent">No products for this query.</div>
);
return 'No products for this query.';
},
},
},
Expand Down
4 changes: 1 addition & 3 deletions examples/recently-viewed-items/app.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -72,9 +72,7 @@ autocomplete({
);
},
noResults() {
return (
<div className="aa-ItemContent">No products for this query.</div>
);
return 'No products for this query.';
},
},
},
Expand Down
2 changes: 1 addition & 1 deletion packages/website/docs/autocomplete-theme-classic.md
Original file line number Diff line number Diff line change
Expand Up @@ -151,7 +151,7 @@ autocomplete({
// ...
templates: {
noResults() {
return <div className="aa-ItemContent">No results for this query.</div>;
return 'No products for this query.';
},
// ...
},
Expand Down

0 comments on commit b241df4

Please sign in to comment.