mirror of
https://github.com/rjNemo/meal_planner
synced 2026-06-12 13:26:45 +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
|
- 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
|
||||||
|
|
|
||||||
|
|
@ -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>
|
||||||
|
|
|
||||||
|
|
@ -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>
|
||||||
|
|
|
||||||
|
|
@ -4,25 +4,27 @@ import { Link } from "react-router-dom";
|
||||||
const SearchBar = props => {
|
const SearchBar = props => {
|
||||||
return (
|
return (
|
||||||
<div className="row">
|
<div className="row">
|
||||||
<input
|
<form>
|
||||||
className="input-field col s10"
|
<input
|
||||||
type="text"
|
className="input-field col s10"
|
||||||
name="search"
|
type="text"
|
||||||
value={props.searchString}
|
name="search"
|
||||||
placeholder="Search a recipe"
|
value={props.searchString}
|
||||||
onChange={props.handleChange}
|
placeholder="Search a recipe"
|
||||||
/>
|
onChange={props.handleChange}
|
||||||
<Link to="/search">
|
/>
|
||||||
<button
|
<Link to="/search">
|
||||||
className="btn-floating waves-effect waves-light right "
|
<button
|
||||||
type="submit"
|
className="btn-floating waves-effect waves-light right "
|
||||||
name="searchButton"
|
type="submit"
|
||||||
value="Search"
|
name="searchButton"
|
||||||
onClick={props.onSubmit}
|
value="Search"
|
||||||
>
|
onClick={props.onSubmit}
|
||||||
<i className="material-icons right">send</i>
|
>
|
||||||
</button>
|
<i className="material-icons right">send</i>
|
||||||
</Link>
|
</button>
|
||||||
|
</Link>
|
||||||
|
</form>
|
||||||
</div>
|
</div>
|
||||||
);
|
);
|
||||||
};
|
};
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue