Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 5 additions & 1 deletion src/component/foodcardlist/pantry/PantryStart.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -176,7 +176,11 @@ const PantryStart = () => {
My Pantry
</Typography>


{ingredients.length === 0 && (
<Typography align="center" style={{ ...SpacingDesign.marginTop(5) }}>
No ingredients, add some!
</Typography>
)}

{ingredients.filter(main => {
return (main.name.toLowerCase().indexOf(filter) !== -1)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,11 @@ const WhatsForDinnerStart = () => {
<Typography variant="h4" align="center">
What&apos;s For Dinner
</Typography>

{recipes.length === 0 && (
<Typography align="center">
Add some ingredients in the pantry to see what is for dinner!
</Typography>
)}
{recipes.filter((main) => main.title.toLowerCase().indexOf(filter) !== -1)
.map((item) => (
<Card style={{ ...SpacingDesign.marginy(3) }} elevation={5} key={item.id}>
Expand Down
26 changes: 16 additions & 10 deletions src/component/social/review/ReviewFocus.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -60,24 +60,30 @@ const ReviewFocus = () => {
}, [makeUpdate]);

const imageListStyle = {
display: 'flex',
flexWrap: 'nowrap',
justifyContent: 'space-around'
}
transform: 'translateZ(0)',
};

return (
<>
<Paper style={{ ...SpacingDesign.padding(2) }}>
<div>
<ImageList cols={1.1} rowHeight={520} style={imageListStyle}>
{pictures.map((picUrl, i) => (
<ImageListItem key={i}>
{/* <Image src={picUrl} cover imageStyle={{ height: '520px', width: '520px' }} /> */}
<img src={picUrl} />
<Box
style={{
display: 'flex',
flexWrap: 'wrap',
justifyContent: 'space-around',
overflow: 'hidden',
}}
>
<ImageList cols={2} rowHeight={300} style={imageListStyle}>
{pictures.map((picUrl) => (
<ImageListItem key={picUrl}>
<Image src={picUrl} cover style={{ ...SpacingDesign.square(40) }} />
{/* <img src={picUrl} /> */}
</ImageListItem>
))}
</ImageList>
</div>
</Box>
<CardActionArea component={Link} to={`/recipes/${recipeId}/reviews/`}>
<Typography variant="h3">
{reviewData.headline}
Expand Down