Skip to content

Commit

Permalink
fix(classic-theme): remove unnecessary wrapper
Browse files Browse the repository at this point in the history
  • Loading branch information
sarahdayan committed Apr 14, 2021
1 parent f042a74 commit 633633d
Show file tree
Hide file tree
Showing 6 changed files with 5 additions and 16 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
3 changes: 0 additions & 3 deletions packages/autocomplete-theme-classic/src/theme.scss
Original file line number Diff line number Diff line change
Expand Up @@ -425,9 +425,6 @@ body {
font-size: 1em;
margin: 0;
padding: var(--aa-spacing);
.aa-ItemContent {
cursor: default;
}
}
// List of results inside the source
@at-root .aa-List {
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 633633d

Please sign in to comment.