From 9080e5b5f2f678bcea04668fd76b937669dca8bd Mon Sep 17 00:00:00 2001 From: Bill Date: Mon, 5 Jul 2021 12:10:32 -0400 Subject: [PATCH] Mannequin view updates --- .../mannequin/FurnitureMannequinView.tsx | 57 +++++++++---------- 1 file changed, 28 insertions(+), 29 deletions(-) diff --git a/src/views/room/widgets/furniture/mannequin/FurnitureMannequinView.tsx b/src/views/room/widgets/furniture/mannequin/FurnitureMannequinView.tsx index d2c762ba..a07a6cba 100644 --- a/src/views/room/widgets/furniture/mannequin/FurnitureMannequinView.tsx +++ b/src/views/room/widgets/furniture/mannequin/FurnitureMannequinView.tsx @@ -178,39 +178,38 @@ export const FurnitureMannequinView: FC = props => -
- { viewMode === FurnitureMannequinViewMode.EDIT && <> - processAction('set_name', event.target.value) } onKeyDown={ event => handleKeyDown(event) } /> -
processAction('load_figure') }>{ LocalizeText('mannequin.widget.style') }
-
processAction('wear') }>{ LocalizeText('mannequin.widget.wear') }
- } - { viewMode === FurnitureMannequinViewMode.SAVE && <> -
+
+ { viewMode === FurnitureMannequinViewMode.DEFAULT && + <>
-
{ mannequinData.name }
-
{ LocalizeText('mannequin.widget.savetext') }
-
-
-
processAction('back') }>{ LocalizeText('mannequin.widget.back') }
-
processAction('save_figure') }>{ LocalizeText('mannequin.widget.save') }
-
-
- } - { viewMode === FurnitureMannequinViewMode.DEFAULT && <> -
-
-
{ mannequinData.name }
+
{ mannequinData.name }
{ LocalizeText('mannequin.widget.weartext') }
processAction('wear') }>{ LocalizeText('mannequin.widget.wear') }
-
- } - { viewMode === FurnitureMannequinViewMode.CLUB && <> -
{ LocalizeText('mannequin.widget.clubnotification') }
- } - { viewMode === FurnitureMannequinViewMode.INCOMPATIBLE_GENDER && <> -
{ LocalizeText('mannequin.widget.wronggender') }
- } + } + { viewMode === FurnitureMannequinViewMode.EDIT && + <> + processAction('set_name', event.target.value) } onKeyDown={ event => handleKeyDown(event) } /> +
+
processAction('load_figure') }>{ LocalizeText('mannequin.widget.style') }
+
processAction('wear') }>{ LocalizeText('mannequin.widget.wear') }
+
+ } + { viewMode === FurnitureMannequinViewMode.SAVE && + <> +
+
{ mannequinData.name }
+
{ LocalizeText('mannequin.widget.savetext') }
+
+
+
processAction('back') }>{ LocalizeText('mannequin.widget.back') }
+
processAction('save_figure') }>{ LocalizeText('mannequin.widget.save') }
+
+ } + { viewMode === FurnitureMannequinViewMode.CLUB && +
{ LocalizeText('mannequin.widget.clubnotification') }
} + { viewMode === FurnitureMannequinViewMode.INCOMPATIBLE_GENDER && +
{ LocalizeText('mannequin.widget.wronggender') }
}