From 255b77d0cf56843e6e8fc2f7f1b1d90ec29f5d8f Mon Sep 17 00:00:00 2001 From: Matt Dunn-Rankin Date: Wed, 22 Apr 2020 04:04:02 -0700 Subject: [PATCH] extract OutfitNameEditButton --- app/src/WardrobePage.js | 38 ++++++++++++++++++++++---------------- 1 file changed, 22 insertions(+), 16 deletions(-) diff --git a/app/src/WardrobePage.js b/app/src/WardrobePage.js index 2e569f1..55e7f58 100644 --- a/app/src/WardrobePage.js +++ b/app/src/WardrobePage.js @@ -215,22 +215,7 @@ function OutfitHeading() { {!isEditing && ( - - - + )} )} @@ -240,6 +225,27 @@ function OutfitHeading() { ); } +function OutfitNameEditButton({ onRequestEdit }) { + return ( + + + + ); +} + function Heading1({ children, ...props }) { return (