Skip to content

Commit

Permalink
fix: Don't pass through internal props in <TeamIdentityHeader>
Browse files Browse the repository at this point in the history
  • Loading branch information
beverloo committed Feb 16, 2025
1 parent 272cb95 commit 9eaab50
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion app/admin/events/[event]/EventTeamCard.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,9 @@ interface TeamIdentityHeaderProps extends BoxProps {
* with a font colour that provides an appropriate amount of context.
*/
const TeamIdentityHeader = styled((props: TeamIdentityHeaderProps) => {
return <Box {...props} />;
// eslint-disable-next-line unused-imports/no-unused-vars
const { darkThemeColour, lightThemeColour, ...boxProps } = props;
return <Box {...boxProps} />;
})(({ darkThemeColour, lightThemeColour, theme }) => {
const backgroundColor = theme.palette.mode === 'light' ? lightThemeColour : darkThemeColour;
const color = theme.palette.getContrastText(backgroundColor);
Expand Down

0 comments on commit 9eaab50

Please sign in to comment.