From 70b5e674968f51405a4a9f7d802167df1fa45108 Mon Sep 17 00:00:00 2001 From: Martin Rohrmeier Date: Thu, 16 Jan 2025 11:29:27 +0100 Subject: [PATCH] fix: remove illegal className props --- .../MainHeader/Components/MainHeaderTitle.tsx | 2 -- .../basic/Headers/PageHeader/PageHeader.tsx | 4 --- src/components/basic/Hyperlink/index.tsx | 1 - src/components/basic/IconButton/index.tsx | 9 +------ src/components/basic/Image/index.tsx | 1 - src/components/basic/ImageGallery/index.tsx | 3 +-- src/components/basic/Input/index.tsx | 19 +++----------- src/components/basic/LanguageSwitch/index.tsx | 3 +-- src/components/basic/LoadingButton/index.tsx | 5 +--- src/components/basic/MainNavigation/index.tsx | 10 +------- src/components/basic/Menu/MenuItem.tsx | 13 ++-------- src/components/basic/Menu/index.tsx | 8 +++--- .../Components/SelectAddMore.tsx | 11 ++------ .../Components/SelectInput.tsx | 2 -- .../Components/SelectOptions.tsx | 3 --- .../Components/SelectedTag.tsx | 3 +-- .../basic/MultiSelectList/index.tsx | 11 ++------ .../basic/NewSubNavigation/index.tsx | 4 --- .../PageNotification/NotificationContent.tsx | 2 +- .../Notifications/PageNotification/index.tsx | 4 +-- .../Snackbar/PageSnackbarStack.tsx | 1 - .../basic/Notifications/Snackbar/index.tsx | 12 ++------- .../basic/OrderStatusButton/index.tsx | 3 --- src/components/basic/ProcessList/ListItem.tsx | 8 ------ src/components/basic/ProcessList/index.tsx | 2 +- .../basic/Progress/CircleProgress/index.tsx | 1 - .../LinearProgressWithValueLabel.tsx | 21 +++------------- src/components/basic/QuickLinks/index.tsx | 3 --- src/components/basic/Radio/index.tsx | 7 ++---- src/components/basic/Rating/index.tsx | 2 -- src/components/basic/SearchInput/index.tsx | 3 +-- src/components/basic/SelectList/index.tsx | 2 -- src/components/basic/SideMenu/index.tsx | 18 +++---------- src/components/basic/SortOption/index.tsx | 3 --- .../basic/StaticTable/EditField.tsx | 18 +++---------- .../basic/StaticTable/HorizontalTable.tsx | 2 -- .../basic/StaticTable/VerticalTable.tsx | 14 +++-------- .../basic/StaticTable/VerticalTableNew.tsx | 25 +++++-------------- src/components/basic/Stepper/StepperItem.tsx | 3 --- src/components/basic/Stepper/index.tsx | 1 - .../SubNavigation/SubNavigationButton.tsx | 2 -- .../basic/SubNavigation/SubNavigationLink.tsx | 1 - src/components/basic/SubNavigation/index.tsx | 1 - .../basic/Table/PageLoadingTable.tsx | 3 --- src/components/basic/Table/index.tsx | 2 -- src/components/basic/Tabs/Tab.tsx | 2 +- src/components/basic/Tabs/TabPanel.tsx | 1 - src/components/basic/Tabs/Tabs.tsx | 6 +---- src/components/basic/Textarea/index.tsx | 16 +++--------- src/components/basic/ToolTips/index.tsx | 1 - src/components/basic/UserAvatar/index.tsx | 4 --- src/components/basic/VerticalTabs/index.tsx | 4 --- src/components/basic/ViewSelector/index.tsx | 3 +-- src/components/content/Cards/AboutCard.tsx | 15 +++-------- src/components/content/Cards/Card.tsx | 11 +------- .../content/Cards/CardAddService.tsx | 4 +-- src/components/content/Cards/CardButtons.tsx | 1 - src/components/content/Cards/CardChip.tsx | 1 - src/components/content/Cards/CardContent.tsx | 5 +--- src/components/content/Cards/CardDecision.tsx | 13 +--------- .../content/Cards/CardHorizontal.tsx | 13 +--------- src/components/content/Cards/CardImage.tsx | 2 +- src/components/content/Cards/CardRating.tsx | 8 ++---- src/components/content/Cards/ContentCard.tsx | 11 ++------ src/components/content/Cards/index.tsx | 1 - src/components/content/Navigation/NavItem.tsx | 2 -- src/components/content/Navigation/index.tsx | 6 +---- src/components/content/UserMenu/index.tsx | 11 ++------ src/components/content/UserNav/index.tsx | 2 +- 69 files changed, 72 insertions(+), 347 deletions(-) diff --git a/src/components/basic/Headers/MainHeader/Components/MainHeaderTitle.tsx b/src/components/basic/Headers/MainHeader/Components/MainHeaderTitle.tsx index a0bdd0ec..b208d0fd 100644 --- a/src/components/basic/Headers/MainHeader/Components/MainHeaderTitle.tsx +++ b/src/components/basic/Headers/MainHeader/Components/MainHeaderTitle.tsx @@ -32,7 +32,6 @@ export const MainHeaderTitle = ({ <> {title && ( {children && ( )} {text} diff --git a/src/components/basic/IconButton/index.tsx b/src/components/basic/IconButton/index.tsx index b7f25cab..0a81dd36 100644 --- a/src/components/basic/IconButton/index.tsx +++ b/src/components/basic/IconButton/index.tsx @@ -35,12 +35,5 @@ export const IconButton = ({ }: IconButtonProps) => { const outlinedStyle = variant === 'outlined' ? { border: '2px solid' } : {} - return ( - - ) + return } diff --git a/src/components/basic/Image/index.tsx b/src/components/basic/Image/index.tsx index 4ac7f346..3c8cf8b6 100644 --- a/src/components/basic/Image/index.tsx +++ b/src/components/basic/Image/index.tsx @@ -74,7 +74,6 @@ export const Image = ({ src, alt, style, loader }: ImageProps): JSX.Element => { return ( {alt { diff --git a/src/components/basic/ImageGallery/index.tsx b/src/components/basic/ImageGallery/index.tsx index 8cd9a440..abddd083 100644 --- a/src/components/basic/ImageGallery/index.tsx +++ b/src/components/basic/ImageGallery/index.tsx @@ -59,7 +59,7 @@ export const ImageGallery = ({ } return ( -
+
{hovered && hoveredImage?.url && ( { @@ -82,7 +82,6 @@ export const ImageGallery = ({ > {gallery.map((image) => (
{ hoverImageFn(image) diff --git a/src/components/basic/Input/index.tsx b/src/components/basic/Input/index.tsx index 7524109d..7a39e8f6 100644 --- a/src/components/basic/Input/index.tsx +++ b/src/components/basic/Input/index.tsx @@ -56,9 +56,8 @@ export const Input = ({ setShowPassword((prev) => !prev) } return ( - + - + )} : } )} - {error && ( - - )} + {error && } ), }} {...props} /> {error && helperText && ( - + {helperText} )} diff --git a/src/components/basic/LanguageSwitch/index.tsx b/src/components/basic/LanguageSwitch/index.tsx index 181be0b9..3e26b4e1 100644 --- a/src/components/basic/LanguageSwitch/index.tsx +++ b/src/components/basic/LanguageSwitch/index.tsx @@ -44,10 +44,9 @@ export const LanguageSwitch = ({ } return ( - + {languages?.map(({ key, name }) => ( { onClick(e, key) diff --git a/src/components/basic/LoadingButton/index.tsx b/src/components/basic/LoadingButton/index.tsx index e907cd16..37df12db 100644 --- a/src/components/basic/LoadingButton/index.tsx +++ b/src/components/basic/LoadingButton/index.tsx @@ -68,11 +68,10 @@ export const LoadingButton = ({ }, [size]) return ( - + {!loading ? (