From a142df86cfafd30235ffd21cda0e6adeee313702 Mon Sep 17 00:00:00 2001 From: Matt Dunn-Rankin Date: Sat, 2 May 2020 23:04:31 -0700 Subject: [PATCH] return focus after PosePicker closes --- src/app/PosePicker.js | 25 +++++++++++++++++-------- 1 file changed, 17 insertions(+), 8 deletions(-) diff --git a/src/app/PosePicker.js b/src/app/PosePicker.js index 6afbc74..c0bc7d1 100644 --- a/src/app/PosePicker.js +++ b/src/app/PosePicker.js @@ -65,6 +65,7 @@ function PosePicker({ - + {outfitState.emotion === "HAPPY" && ( + + )} + {outfitState.emotion === "SAD" && ( + + )} + {outfitState.emotion === "SICK" && ( + + )} @@ -109,20 +118,20 @@ function PosePicker({ - + - + - + - + - + ; +function EmojiImage({ src, alt }) { + return {alt}; } function usePoses(outfitState) {