fix errors and warnings

This commit is contained in:
Viktor Rådberg
2023-09-18 11:33:30 +02:00
parent 4230032d6f
commit de30682597
16 changed files with 144 additions and 143 deletions

View File

@@ -30,14 +30,14 @@ export const StyledExtraCounterButton = styled.button`
`;
const IconContainer = styled.div<{
rotation: number;
$rotation: number;
}>`
width: auto;
${(props) => {
if (
props.rotation === Rotation.SideFlipped ||
props.rotation === Rotation.Side
props.$rotation === Rotation.SideFlipped ||
props.$rotation === Rotation.Side
) {
return css`
rotate: -90deg;
@@ -121,7 +121,7 @@ const ExtraCounter = ({
e.preventDefault();
}}
>
<IconContainer rotation={rotation}>
<IconContainer $rotation={rotation}>
{Icon}
<TextContainer>
<OutlinedText