From ccbddf6b0664c07b7646855cb066bd4008a24a70 Mon Sep 17 00:00:00 2001 From: Birte Rohden Date: Tue, 10 Dec 2024 08:12:59 +0100 Subject: [PATCH] feat: :sparkles: set /dein-abo label dynamically #TECH-1689 --- .../components/src/IconButton/IconButton.d.ts | 1 + .../components/src/IconButton/IconButton.tsx | 9 +- .../src/LegacyFooter/LegacyDesktopFooter.d.ts | 1 + .../src/LegacyFooter/LegacyDesktopFooter.tsx | 288 +++++++++--------- .../src/LegacyFooter/LegacyFooter.d.ts | 1 + .../src/LegacyFooter/LegacyFooter.tsx | 16 +- .../src/LegacyFooter/LegacyMobileFooter.d.ts | 1 + .../src/LegacyFooter/LegacyMobileFooter.tsx | 134 ++++---- .../src/LegacyHeader/LegacyDesktopHeader.tsx | 33 +- .../components/LegacyMainNav.d.ts | 1 + .../LegacyHeader/components/LegacyMainNav.tsx | 256 ++++++++-------- .../components/LegacyMobileNav.tsx | 114 +++---- .../src/LegacyPageLayout/LegacyPageLayout.tsx | 5 +- 13 files changed, 446 insertions(+), 414 deletions(-) diff --git a/packages/components/src/IconButton/IconButton.d.ts b/packages/components/src/IconButton/IconButton.d.ts index 103e3d8a..9fa48f1f 100644 --- a/packages/components/src/IconButton/IconButton.d.ts +++ b/packages/components/src/IconButton/IconButton.d.ts @@ -23,5 +23,6 @@ export interface IconButtonATypeProps extends IconButtonBaseProps, Omit>; +export declare const StyledIconButton: import("styled-components").StyledComponent<"button", any, IconButtonProps, never>; declare const IconButton: React.FC; export default IconButton; diff --git a/packages/components/src/IconButton/IconButton.tsx b/packages/components/src/IconButton/IconButton.tsx index ffc468c6..b71413cc 100644 --- a/packages/components/src/IconButton/IconButton.tsx +++ b/packages/components/src/IconButton/IconButton.tsx @@ -257,12 +257,7 @@ export const iconButtonStyles = css` `} `; -const StyledIconButton = styled( - ({ expanded, icon, loading, ...rest }: IconButtonProps) => ( - // eslint-disable-next-line react/button-has-type -