Skip to content

Commit 539826f

Browse files
author
Hector Arce De Las Heras
committed
Fix eslint prettier errors
1 parent 9c5a1c5 commit 539826f

File tree

2 files changed

+7
-7
lines changed

2 files changed

+7
-7
lines changed

src/components/toggle/components/toggleThreePosition.tsx

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -35,17 +35,17 @@ const ToggleThreePositionComponent = (
3535
position === POSITIONS.CENTER
3636
? inputValues.centerInputValue
3737
: position === POSITIONS.RIGHT
38-
? inputValues.rightInputValue ?? props.onIcon?.altText
39-
: inputValues.leftInputValue ?? props.offIcon?.altText;
38+
? inputValues.rightInputValue ?? props.onIcon?.altText
39+
: inputValues.leftInputValue ?? props.offIcon?.altText;
4040

4141
const buildTextOrIcon = (position: POSITIONS) => {
4242
return (
4343
<>
4444
{position === POSITIONS.CENTER
4545
? inputValues.centerInputValue
4646
: position === POSITIONS.RIGHT
47-
? props.onText?.content
48-
: props.offText?.content}
47+
? props.onText?.content
48+
: props.offText?.content}
4949
</>
5050
);
5151
};

src/components/tooltip/hooks/useTooltip.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -148,9 +148,9 @@ export const useTooltip = <V>({
148148
top: arrowY !== null ? `${arrowY}px` : '',
149149
right: '',
150150
bottom: '',
151-
[staticSide as string]: `calc(${
152-
styles.tooltipExternalContainer?.[DeviceBreakpointsType.DESKTOP]?.padding ?? 0
153-
} - ${styles.arrowContainer?.arrow_position ?? '0px'} / 2)`,
151+
[staticSide as string]: `calc(${styles.tooltipExternalContainer?.[DeviceBreakpointsType.DESKTOP]?.padding ?? 0} - ${
152+
styles.arrowContainer?.arrow_position ?? '0px'
153+
} / 2)`,
154154
};
155155

156156
if (arrowElement && (arrowElement as HTMLElement).style) {

0 commit comments

Comments
 (0)