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

@@ -26,17 +26,17 @@ export const StyledLifeCounterButton = styled.button`
`;
const TextContainer = styled.div<{
align?: string;
rotation: number;
$align?: string;
$rotation: number;
}>`
position: relative;
${(props) => {
if (
props.rotation === Rotation.SideFlipped ||
props.rotation === Rotation.Side
props.$rotation === Rotation.SideFlipped ||
props.$rotation === Rotation.Side
) {
if (props.align === 'right') {
if (props.$align === 'right') {
return css`
rotate: -90deg;
bottom: 25%;
@@ -49,7 +49,7 @@ const TextContainer = styled.div<{
`;
}
if (props.align === 'right') {
if (props.$align === 'right') {
return css`
left: 25%;
`;
@@ -123,8 +123,8 @@ const LifeCounterButton = ({
style={{ fontSize }}
>
<TextContainer
rotation={rotation}
align={operation === 'add' ? 'right' : 'left'}
$rotation={rotation}
$align={operation === 'add' ? 'right' : 'left'}
>
{operation === 'add' ? '\u002B' : '\u2212'}
</TextContainer>