CEC-252, CEC-253 Remove modal status popup, new car selection control (#45)

* Create multiselect car table control
Remove table overflow containers

* Include trim to add car form

* CEC-252 Replace modal status with link to car details page

* Remove send command from car status page
Fix menu key warning
This commit is contained in:
John Wu
2021-06-01 13:16:13 -07:00
committed by GitHub
parent 5943b42a91
commit c36f6976f7
15 changed files with 3096 additions and 2876 deletions

View File

@@ -20,9 +20,13 @@ const SearchField = (props) => {
onSearch(searchTerm);
};
const handleEnterPress = (e) => {
if (e.keyCode !== 13) return;
e.preventDefault();
handleSearch(e);
if (e.keyCode === 13) {
e.preventDefault();
handleSearch(e);
} else if (e.keyCode === 27) {
e.preventDefault();
setSearchTerm("");
}
};
return (