From a699338e38f1abc533a6685a74deb78b2dd68b6a Mon Sep 17 00:00:00 2001 From: tugcekucukoglu Date: Fri, 17 Nov 2023 17:30:23 +0300 Subject: [PATCH] Code refactor --- components/lib/speeddial/style/SpeedDialStyle.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/components/lib/speeddial/style/SpeedDialStyle.js b/components/lib/speeddial/style/SpeedDialStyle.js index 3327cfc07..c27ac5603 100644 --- a/components/lib/speeddial/style/SpeedDialStyle.js +++ b/components/lib/speeddial/style/SpeedDialStyle.js @@ -84,8 +84,8 @@ const css = ` /* Direction */ const inlineStyles = { root: ({ props }) => ({ - alignItems: props.direction === 'up' || props.direction === 'down' ? 'center' : '', - justifyContent: props.direction === 'left' || props.direction === 'right' ? 'center' : '', + alignItems: (props.direction === 'up' || props.direction === 'down') && 'center', + justifyContent: (props.direction === 'left' || props.direction === 'right') && 'center', flexDirection: props.direction === 'up' ? 'column-reverse' : props.direction === 'down' ? 'column' : props.direction === 'left' ? 'row-reverse' : props.direction === 'right' ? 'row' : null }), menu: ({ props }) => ({