From 015174a0b6448785d3b967240ff22a4262109ea7 Mon Sep 17 00:00:00 2001 From: Mark Berger Date: Mon, 6 Feb 2023 20:33:29 +0200 Subject: [PATCH] Icons passed to Button component must be wrapped in a div for proper styling (#22176) - Added property notation for Rotate Icon to support className attribute --- airbyte-webapp/src/components/icons/RotateIcon.tsx | 5 +++-- .../ConnectionStatusPage/ConnectionStatusPage.module.scss | 8 -------- .../ConnectionStatusPage/ConnectionStatusPage.tsx | 6 +----- 3 files changed, 4 insertions(+), 15 deletions(-) diff --git a/airbyte-webapp/src/components/icons/RotateIcon.tsx b/airbyte-webapp/src/components/icons/RotateIcon.tsx index 7ce8c6868753..f58b5fb485bf 100644 --- a/airbyte-webapp/src/components/icons/RotateIcon.tsx +++ b/airbyte-webapp/src/components/icons/RotateIcon.tsx @@ -4,10 +4,11 @@ interface Props { color?: string; width?: string; height?: string; + className?: string; } -export const RotateIcon = ({ color = theme.greyColor20, width = "20", height = "20" }: Props) => ( - +export const RotateIcon = ({ color = theme.greyColor20, width = "20", height = "20", className }: Props) => ( + { className={styles.syncButton} disabled={!allowSync} onClick={onSyncNowButtonClick} - icon={ -
- -
- } + icon={} >