mirror of
https://github.com/Vikeo/LifeTrinket.git
synced 2025-11-13 14:46:21 +00:00
fix errors and warnings
This commit is contained in:
@@ -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>
|
||||
|
||||
Reference in New Issue
Block a user