Skip to content

Commit 44c441f

Browse files
committed
Resolve styled component props warning
1 parent 99c7aeb commit 44c441f

File tree

1 file changed

+3
-7
lines changed

1 file changed

+3
-7
lines changed

src/components/Footer/SponsorTable.tsx

Lines changed: 3 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -16,30 +16,26 @@ function SponsorTable({ max, levelName, sponsors, ...rest }: Props) {
1616
<SponsorLogoList>
1717
{sponsors.map((sponsor) => (
1818
<Link to={`/sponsoring/sponsor/${sponsor.id}`} relative="path" key={sponsor.id}>
19-
<LogoImage image={sponsor.logo_image} />
19+
<LogoImage $image={sponsor.logo_image} />
2020
</Link>
2121
))}
2222
</SponsorLogoList>
2323
</SponsorCard>
2424
);
2525
}
2626

27-
interface Image {
28-
image: string;
29-
}
30-
3127
const H3 = styled.h3`
3228
color: #141414 !important;
3329
width: 120px;
3430
`;
3531

36-
const LogoImage = styled.div<Image>`
32+
const LogoImage = styled.div<{ $image: string }>`
3733
display: inline-flex;
3834
justify-content: center;
3935
align-items: center;
4036
color: #141414;
4137
height: 200px;
42-
background-image: url(${(props) => props.image});
38+
background-image: url(${(props) => props.$image});
4339
background-size: contain;
4440
background-position: center;
4541

0 commit comments

Comments
 (0)