Skip to content

Commit

Permalink
Refactor withBackgroundImage export in HeroContainer
Browse files Browse the repository at this point in the history
Update the `withBackgroundImage` function call to include generic `Props`. Removed an unnecessary TypeScript ignore comment and an extra line for cleaner code.
  • Loading branch information
leolabdev committed Aug 30, 2024
1 parent c2275a8 commit 0205583
Showing 1 changed file with 1 addition and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -220,9 +220,7 @@ const HeroContainer = (props: Props) => {
);
};

export default withBackgroundImage({
export default withBackgroundImage<Props>({
alt: 'Teaching Package bg image',
imagePath: bgPicture as unknown as string,

// @ts-ignore
})(HeroContainer);

0 comments on commit 0205583

Please sign in to comment.