Skip to content

Commit

Permalink
Minor changes
Browse files Browse the repository at this point in the history
  • Loading branch information
guzmanalejandro committed Dec 14, 2023
1 parent ca2c6df commit 0b694cb
Showing 1 changed file with 18 additions and 2 deletions.
20 changes: 18 additions & 2 deletions src/components/UserProfile.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -783,7 +783,7 @@ const handleVisibilityChange = async (newVisibility) => {
<div className="card-buttons">
<Button variant="outline-primary" size="sm" className="me-2" onClick={() => {
setSelectedRecipeId(recipe._id)
setShowRemoveRecipeModal(true)
setShowEditRecipe(true)
}}>
<Pencil />
</Button>
Expand Down Expand Up @@ -1050,10 +1050,26 @@ const handleVisibilityChange = async (newVisibility) => {
</Modal.Body>
</Modal>

<Modal
show={showEditRecipe}
size="lg"
onHide={handleCloseEditRecipeModal}
>
<Modal.Header closeButton className="bg-normal">
<Modal.Title className="fs-3 fw-semi-bold">Edit Recipe</Modal.Title>
</Modal.Header>
<Modal.Body className="p-0">
<PostRecipe
onClose={handleCloseEditRecipeSuccessfulModal}
edit={true}
id={selectedRecipeId}
></PostRecipe>
</Modal.Body>
</Modal>


</div>
);
};

export default UserProfile;

0 comments on commit 0b694cb

Please sign in to comment.