From 0205583e76cc49784fbb8507fc57a7467c905c23 Mon Sep 17 00:00:00 2001 From: leolab1337 <61798137+leolab1337@users.noreply.github.com> Date: Fri, 30 Aug 2024 20:00:51 +0300 Subject: [PATCH] Refactor withBackgroundImage export in HeroContainer Update the `withBackgroundImage` function call to include generic `Props`. Removed an unnecessary TypeScript ignore comment and an extra line for cleaner code. --- .../Hero/~deprecated/ui/HeroContainerV2/HeroContainer.tsx | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/frontend-next-migration/src/entities/Hero/~deprecated/ui/HeroContainerV2/HeroContainer.tsx b/frontend-next-migration/src/entities/Hero/~deprecated/ui/HeroContainerV2/HeroContainer.tsx index 5daa27c30..e62e5f559 100644 --- a/frontend-next-migration/src/entities/Hero/~deprecated/ui/HeroContainerV2/HeroContainer.tsx +++ b/frontend-next-migration/src/entities/Hero/~deprecated/ui/HeroContainerV2/HeroContainer.tsx @@ -220,9 +220,7 @@ const HeroContainer = (props: Props) => { ); }; -export default withBackgroundImage({ +export default withBackgroundImage({ alt: 'Teaching Package bg image', imagePath: bgPicture as unknown as string, - - // @ts-ignore })(HeroContainer);