From 883486a681b23e6585b8714ca8dec867ffb4b638 Mon Sep 17 00:00:00 2001 From: Eddie Liu Date: Wed, 30 Oct 2024 10:58:20 -0700 Subject: [PATCH] fixed stage orientation in auto modal --- .../games/crescendo/CrescendoField.tsx | 17 ++++++++++++++--- 1 file changed, 14 insertions(+), 3 deletions(-) diff --git a/app/src/components/games/crescendo/CrescendoField.tsx b/app/src/components/games/crescendo/CrescendoField.tsx index 1da11b6..fdea73d 100644 --- a/app/src/components/games/crescendo/CrescendoField.tsx +++ b/app/src/components/games/crescendo/CrescendoField.tsx @@ -99,10 +99,21 @@ export const CrescendoField = ({ }}> + width="100" + strokeWidth="1" + stroke={selectedAlliance === 'blue' ? '#0b6fdf' : '#e43737'} + fill="#404040" + // fill="#000000" + // style={{transform: [{rotate: '30deg'}]}}> + style={ fieldOrientation === 'leftBlue' + ? selectedAlliance === 'blue' + ? {transform: [{rotate: '30deg'}]} + : {transform: [{rotate: '210deg'}]} + : selectedAlliance === 'blue' + ? {transform: [{rotate: '210deg'}]} + : {transform: [{rotate: '30deg'}]} + }>