-
-
Save yordanzhelevdev/b3879ef6d500ebcd0dab809d693f3a74 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/ renderEditRecipe(key) { | |
// const recipe = this.props.recipes[key]; | |
// return ( | |
// <div className="modal"> | |
// <form | |
// name="recipeForm" | |
// ref={input => (this.recipeForm = input)} | |
// > | |
// <div className="inputsContainer"> | |
// <div className="recipeInputs"> | |
// <label>Recipe Name</label> | |
// <input | |
// value={recipe.recipeName} | |
// name="recipeName" | |
// type="text" | |
// ref={input => (this.recipeName = input)} | |
// /> | |
// <label>Recipe Photo</label> | |
// <input | |
// value={recipe.dishImg} | |
// type="text" | |
// name="dishImg" | |
// ref={input => (this.dishImg = input)} | |
// /> | |
// <label>Ingredients</label> | |
// <textarea | |
// value={recipe.ingredients} | |
// name="ingredients" | |
// placeholder="Put each ingredient on its own line" | |
// ref={input => (this.ingredients = input)} | |
// /> | |
// <label>Directions</label> | |
// <textarea | |
// value={recipe.directions} | |
// name="directions" | |
// placeholder="Put each step on its own line" | |
// ref={input => (this.directions = input)} | |
// /> | |
// </div> | |
// </div> | |
// <div className="formBtns"> | |
// <input type="submit" value="Save" /> | |
// <input type="reset" value="Clear" /> | |
// </div> | |
// </form> | |
// </div> | |
// ) | |
// } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment