Skip to content

Commit

Permalink
bootstraping nutrient predictor
Browse files Browse the repository at this point in the history
  • Loading branch information
tahmid-saj committed Jun 21, 2024
1 parent 74148dd commit 2635482
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -111,11 +111,13 @@ const UploadImage = () => {
</SimplePaper>
</div>

<div className="col">
<UploadedImageContainer>
<div className="col" visible>
<UploadedImageContainer
visible={ `${(formFields.uploadedImagePath === "" && formFields.imageUrl === "") ? "hidden" : ""}` }>
<UploadedImage alt="" id="imageOutput"
style={{ width: "375px", height: "375px",
visibility: `${(formFields.uploadedImagePath === "" && formFields.imageUrl === "") ? "hidden" : ""}` }}></UploadedImage>
// visibility: `${(formFields.uploadedImagePath === "" && formFields.imageUrl === "") ? "hidden" : ""}`
}}></UploadedImage>

{/* <UploadedImage alt="" id="imageOutput"
style={{ width: "500px", height: "500px" }}></UploadedImage> */}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,10 +16,11 @@ export const UploadImageForm = styled.form`
`

export const UploadedImageContainer = styled.div`
display: flex;
display: ${(props) => props.visible === "hidden" ? "none" : "flex"};
justify-content: center;
align-items: center;
margin: 2% 2% 2% 2%;
visibility: ${(props) => props.visible};
`

export const UploadedImage = styled.img`
Expand Down

0 comments on commit 2635482

Please sign in to comment.