Skip to content

Commit 69cbe61

Browse files
author
Hector Arce De Las Heras
committed
Fix eslint errors
1 parent 193da87 commit 69cbe61

File tree

4 files changed

+14
-9
lines changed

4 files changed

+14
-9
lines changed

src/components/table/table.styled.ts

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -243,9 +243,13 @@ export const TableExpandedCellStyled = styled.td<{
243243

244244
export const TableEmptyExpandedContentRow = styled.div<{ styles?: TableRowStylesTypes }>`
245245
width: ${({ styles }) =>
246-
`calc(${styles?.accordionIcon?.width} + (${styles?.accordionIconContainer?.padding_left ?? '0%'} + ${styles?.accordionIconContainer?.padding_right ?? '0%'}))`};
246+
`calc(${styles?.accordionIcon?.width} + (${
247+
styles?.accordionIconContainer?.padding_left ?? '0%'
248+
} + ${styles?.accordionIconContainer?.padding_right ?? '0%'}))`};
247249
height: ${({ styles }) =>
248-
`calc(${styles?.accordionIcon?.height} + (${styles?.accordionIconContainer?.padding_top ?? '0%'} + ${styles?.accordionIconContainer?.padding_bottom ?? '0%'}))`};
250+
`calc(${styles?.accordionIcon?.height} + (${
251+
styles?.accordionIconContainer?.padding_top ?? '0%'
252+
} + ${styles?.accordionIconContainer?.padding_bottom ?? '0%'}))`};
249253
`;
250254

251255
export const TableExpandedButton = styled.button<{ styles?: TableRowStylesTypes }>`

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(${styles.tooltipExternalContainer?.[DeviceBreakpointsType.DESKTOP]?.padding ?? 0} - ${
152-
styles.arrowContainer?.arrow_position ?? '0px'
153-
} / 2)`,
151+
[staticSide as string]: `calc(${
152+
styles.tooltipExternalContainer?.[DeviceBreakpointsType.DESKTOP]?.padding ?? 0
153+
} - ${styles.arrowContainer?.arrow_position ?? '0px'} / 2)`,
154154
};
155155

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

src/utils/structuredClone/structuredClone.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
// eslint-disable-next-line node/no-extraneous-import
12
import ungapStructuredClone from '@ungap/structured-clone';
23

34
let structuredClone;

0 commit comments

Comments
 (0)