No errors grocery page

This commit is contained in:
2021-10-31 15:25:42 +01:00
parent fb346632c5
commit 453e80f82d
26 changed files with 47 additions and 47 deletions

View File

@@ -13,7 +13,7 @@ const GroceryListPage = () => {
{
currentTab === "Groceries" ? <Groceries /> : <Products />
}
{/* <TabMenu currentTab={currentTab} setCurrentTab={setCurrentTab} /> */}
<TabMenu currentTab={currentTab} setCurrentTab={setCurrentTab} />
</WrapperGroceryPage>
)
}

View File

@@ -14,7 +14,7 @@ import { useSelector } from 'react-redux'
const Groceries = () => {
const statusItems = useSelector(state => state.items.status)
return (
<View>
<View style={{height: '100%'}}>
{statusItems === 'loading' ? <LoadAnimation/>
: <GroceryList />}
<ContainerButtons />

View File

@@ -67,7 +67,7 @@ const AddRecipe = () => {
<>
<HeaderPadding/>
<Wrapper >
{image && <StyledImage src={image} alt="Recipe" />}
{image && <StyledImage source={image} alt="Recipe" />}
<WrapperRecipe>
<View id="row">
{/* <IconRecipe /> */}

View File

@@ -31,7 +31,7 @@ const Recipe = () => {
<>
<HeaderPadding/>
<Wrapper >
{recipe.image && <StyledImage src={recipe.image} />}
{recipe.image && <StyledImage source={recipe.image} />}
<WrapperRecipe>
<Text>{recipe.name}</Text>
<Hr />

View File

@@ -63,7 +63,7 @@ export const InputInstructions = styled(Text)`
width: 100%;
`
export const StyledImage = styled(Image)`
object-fit: cover;
resize-mode: contain;
width: 100px;
height: 100px;
`

View File

@@ -34,7 +34,7 @@ export const InstructionNumber = styled(Text)`
export const StyledImage = styled(Image)`
margin-top: -70px;
object-fit: cover;
resize-mode: contain;
height: 200px;
width: 100%;
@media ${({theme}) => theme.mediaQueries.above768}{