From b334031b2ff5c26b272fe11d0846f74986922c00 Mon Sep 17 00:00:00 2001 From: Tom <20648924+moT01@users.noreply.github.com> Date: Tue, 29 Jun 2021 05:02:49 -0500 Subject: [PATCH] fix(client): runtime error with icons/space component (#42665) Co-authored-by: Shaun Hamilton --- client/src/assets/icons/spacer.tsx | 2 -- client/src/components/helpers/toggle-button.tsx | 1 + 2 files changed, 1 insertion(+), 2 deletions(-) diff --git a/client/src/assets/icons/spacer.tsx b/client/src/assets/icons/spacer.tsx index 8ff0c4a7c3..f4daee9ba1 100644 --- a/client/src/assets/icons/spacer.tsx +++ b/client/src/assets/icons/spacer.tsx @@ -8,8 +8,6 @@ interface SpacerPropTypes { function Spacer(props: SpacerPropTypes): JSX.Element { const { t } = useTranslation(); - props.style = { paddingTop: '5', ...props.style }; - return ( {t('icons.spacer')} diff --git a/client/src/components/helpers/toggle-button.tsx b/client/src/components/helpers/toggle-button.tsx index 256d20a44f..c2f3a93458 100644 --- a/client/src/components/helpers/toggle-button.tsx +++ b/client/src/components/helpers/toggle-button.tsx @@ -32,6 +32,7 @@ export default function ToggleButton({ }: ButtonProps): JSX.Element { const checkIconStyle = { height: '15px', + paddingTop: '5', width: '20px' }; return (