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 - put a preloader
- route bad request to notFOund (exple: /categories/string, when search results is null) - route bad request to notFOund (exple: /categories/string, when search results is null)
- Use ErrorBoundaries component ?
- add sidenav on mobile - add sidenav on mobile
- contact form - contact form
- override Router with scoll to top function

View file

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

View file

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

View file

@ -4,6 +4,7 @@ import { Link } from "react-router-dom";
const SearchBar = props => { const SearchBar = props => {
return ( return (
<div className="row"> <div className="row">
<form>
<input <input
className="input-field col s10" className="input-field col s10"
type="text" type="text"
@ -23,6 +24,7 @@ const SearchBar = props => {
<i className="material-icons right">send</i> <i className="material-icons right">send</i>
</button> </button>
</Link> </Link>
</form>
</div> </div>
); );
}; };