mirror of
https://github.com/rjNemo/meal_planner
synced 2026-06-06 02:26:49 +00:00
daily brush
This commit is contained in:
parent
162857407d
commit
85f6f9efc1
4 changed files with 24 additions and 21 deletions
|
|
@ -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
|
||||
|
|
|
|||
|
|
@ -169,7 +169,6 @@ const App = () => {
|
|||
searchResults={searchResults}
|
||||
/>
|
||||
</Route>
|
||||
|
||||
<Route path="/404">
|
||||
<NotFound handleClick={getRandomMeal} />
|
||||
</Route>
|
||||
|
|
|
|||
|
|
@ -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>
|
||||
|
|
|
|||
|
|
@ -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>
|
||||
);
|
||||
};
|
||||
|
|
|
|||
Loading…
Reference in a new issue