diff --git a/src/Dish/action.js b/src/Dish/action.js index 0a8aefb..431eba9 100644 --- a/src/Dish/action.js +++ b/src/Dish/action.js @@ -38,25 +38,6 @@ export function dishGetAll() { }; } -// export function menuGetByUserId(userId) { -// const id = userId; -// return async (dispatch, getState) => { -// try { -// const responseData = await instance.get(`/menus/${id}`); - -// console.log("menuGetByUserId responseData: ", responseData.data.menus); - -// responseData.data.menus.map(menuData => { -// console.log("DISPATCH MENUDATA: ", menuData); -// dispatch(menuAllByUser(menuData)); -// }); -// // dispatch(menuAllByUser(responseData.data.menus)); -// } catch (error) { -// throw error; -// } -// }; -// } - function dishGetAllSuccess(respData) { console.log("dishGetAllSuccess respData======>: ", respData); return { diff --git a/src/axios.js b/src/axios.js index eed8c5a..1df0ce3 100644 --- a/src/axios.js +++ b/src/axios.js @@ -1,6 +1,6 @@ import axios from "axios"; const instance = axios.create({ - baseURL: "http://localhost:5000" + baseURL: "https://book-a-cook-server.herokuapp.com/" }); export default instance; diff --git a/src/components/Album.js b/src/components/Album.js index 9e2262b..3774062 100644 --- a/src/components/Album.js +++ b/src/components/Album.js @@ -1,63 +1,63 @@ -import React from 'react'; -// import AppBar from '@material-ui/core/AppBar'; -import Button from '@material-ui/core/Button'; -// import CameraIcon from '@material-ui/icons/PhotoCamera'; -import Card from '@material-ui/core/Card'; -import CardActions from '@material-ui/core/CardActions'; -import CardContent from '@material-ui/core/CardContent'; -import CardMedia from '@material-ui/core/CardMedia'; -import CssBaseline from '@material-ui/core/CssBaseline'; -import Grid from '@material-ui/core/Grid'; -// import Toolbar from '@material-ui/core/Toolbar'; -import Typography from '@material-ui/core/Typography'; -import { makeStyles } from '@material-ui/core/styles'; -import Container from '@material-ui/core/Container'; -import Link from '@material-ui/core/Link'; +import React from "react"; + +import Button from "@material-ui/core/Button"; + +import Card from "@material-ui/core/Card"; +import CardActions from "@material-ui/core/CardActions"; +import CardContent from "@material-ui/core/CardContent"; +import CardMedia from "@material-ui/core/CardMedia"; +import CssBaseline from "@material-ui/core/CssBaseline"; +import Grid from "@material-ui/core/Grid"; + +import Typography from "@material-ui/core/Typography"; +import { makeStyles } from "@material-ui/core/styles"; +import Container from "@material-ui/core/Container"; +import Link from "@material-ui/core/Link"; import TextField from "@material-ui/core/TextField"; function Copyright() { return ( - {'Copyright © '} + {"Copyright © "} Your Website - {' '} + {" "} {new Date().getFullYear()} - {'.'} + {"."} ); } const useStyles = makeStyles(theme => ({ icon: { - marginRight: theme.spacing(2), + marginRight: theme.spacing(2) }, heroContent: { backgroundColor: theme.palette.background.paper, - padding: theme.spacing(8, 0, 6), + padding: theme.spacing(8, 0, 6) }, heroButtons: { - marginTop: theme.spacing(4), + marginTop: theme.spacing(4) }, cardGrid: { paddingTop: theme.spacing(8), - paddingBottom: theme.spacing(8), + paddingBottom: theme.spacing(8) }, card: { - height: '100%', - display: 'flex', - flexDirection: 'column', + height: "100%", + display: "flex", + flexDirection: "column" }, cardMedia: { - paddingTop: '56.25%', // 16:9 + paddingTop: "56.25%" }, cardContent: { - flexGrow: 1, + flexGrow: 1 }, footer: { backgroundColor: theme.palette.background.paper, - padding: theme.spacing(6), - }, + padding: theme.spacing(6) + } })); const cards = [1, 2, 3, 4, 5, 6, 7, 8, 9]; @@ -69,42 +69,34 @@ export default function Album() {
- {/* Hero unit */}
- + Find the best cooks in your area - {/* Search Input */} - - Let a cook prepare the food while you take care of something more important... - spending time with your family and friends. + name="searchText" + floatingLabelText="Search For Images" + fullWidth={true} + /> + + Let a cook prepare the food while you take care of something more + important... spending time with your family and friends. - {/*
- - - - - - - - -
*/}
- {/* End hero unit */} {cards.map(card => ( @@ -119,7 +111,8 @@ export default function Album() { Heading - This is a media card. You can use this section to describe the content. + This is a media card. You can use this section to describe + the content. @@ -136,12 +129,17 @@ export default function Album() {
- {/* Footer */} -