daily brush

This commit is contained in:
Ruidy Nemausat 2020-01-29 17:30:29 +01:00
parent 162857407d
commit 85f6f9efc1
4 changed files with 24 additions and 21 deletions

View file

@ -84,5 +84,7 @@ Free meal planner for cooks short on ideas! (like me …)
- put a preloader
- route bad request to notFOund (exple: /categories/string, when search results is null)
- Use ErrorBoundaries component ?
- add sidenav on mobile
- contact form
- override Router with scoll to top function

View file

@ -169,7 +169,6 @@ const App = () => {
searchResults={searchResults}
/>
</Route>
<Route path="/404">
<NotFound handleClick={getRandomMeal} />
</Route>

View file

@ -12,7 +12,7 @@ const CardEntry = props => {
<div className="card-image">
<img src={strMealThumb} alt={strMeal} />
</div>
<div class="card-content">
<div className="card-content">
<h4>{strMeal}</h4>
</div>
</div>

View file

@ -4,25 +4,27 @@ import { Link } from "react-router-dom";
const SearchBar = props => {
return (
<div className="row">
<input
className="input-field col s10"
type="text"
name="search"
value={props.searchString}
placeholder="Search a recipe"
onChange={props.handleChange}
/>
<Link to="/search">
<button
className="btn-floating waves-effect waves-light right "
type="submit"
name="searchButton"
value="Search"
onClick={props.onSubmit}
>
<i className="material-icons right">send</i>
</button>
</Link>
<form>
<input
className="input-field col s10"
type="text"
name="search"
value={props.searchString}
placeholder="Search a recipe"
onChange={props.handleChange}
/>
<Link to="/search">
<button
className="btn-floating waves-effect waves-light right "
type="submit"
name="searchButton"
value="Search"
onClick={props.onSubmit}
>
<i className="material-icons right">send</i>
</button>
</Link>
</form>
</div>
);
};