Skip to content

Commit 37e0ff9

Browse files
committed
lint: change eslint
1 parent 89f7800 commit 37e0ff9

File tree

7 files changed

+20
-10
lines changed

7 files changed

+20
-10
lines changed

src/components/AttentionBox/AttentionBox.jsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ const AttentionBox = ({
3232
`${classNameWithType}__title-container__icon`
3333
)}
3434
ignoreFocusStyle
35-
iconSize={"24"}
35+
iconSize="24"
3636
/>
3737
<span
3838
className={cx(

src/components/AttentionBox/AttentionBoxConstants.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,5 +4,5 @@ export const ATTENTION_BOX_TYPES = {
44
PRIMARY: "primary",
55
SUCCESS: "success",
66
DANGER: "danger",
7-
DARK: "dark",
7+
DARK: "dark"
88
};

src/components/Button/Button.jsx

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -157,7 +157,9 @@ const Button = forwardRef(
157157
marginRight,
158158
marginLeft,
159159
noSidePadding,
160-
preventClickAnimation
160+
preventClickAnimation,
161+
leftFlat,
162+
rightFlat
161163
]);
162164

163165
const mergedRef = useMergeRefs({ refs: [ref, buttonRef] });
@@ -193,7 +195,8 @@ const Button = forwardRef(
193195
ariaLabel,
194196
loading,
195197
onFocus,
196-
onBlur
198+
onBlur,
199+
mergedRef
197200
]);
198201

199202
if (loading) {

src/components/Dialog/Dialog.jsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -324,7 +324,7 @@ export default class Dialog extends PureComponent {
324324
}
325325
]}
326326
>
327-
{({ placement, style, ref, arrowProps, ...props }) => {
327+
{({ placement, style, ref, arrowProps }) => {
328328
if (!this.isShown() && placement) {
329329
return null;
330330
}

src/components/Icon/CustomSvgIcon.jsx

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
/* eslint-disable react/jsx-props-no-spreading */
12
import React from "react";
23
import PropTypes from "prop-types";
34
import cx from "classnames";

src/components/Icon/hooks/useIconProps.js

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,12 @@ import useEventListener from "../../../hooks/useEventListener";
55
import useKeyEvent from "../../../hooks/useKeyEvent";
66
import { keyCodes } from "../../../constants/KeyCodes";
77

8-
export default function useIconProps({ onClick, className, clickable, ignoreFocusStyle }) {
8+
export default function useIconProps({
9+
onClick,
10+
className,
11+
clickable,
12+
ignoreFocusStyle
13+
}) {
914
const iconRef = useRef(null);
1015
const onEnterCallback = useCallback(
1116
event => {
@@ -27,7 +32,7 @@ export default function useIconProps({ onClick, className, clickable, ignoreFocu
2732
"icon_component--clickable": clickable,
2833
"icon_component--no-focus-style": ignoreFocusStyle
2934
});
30-
}, [clickable, className]);
35+
}, [clickable, className, ignoreFocusStyle]);
3136

3237
useEventListener({
3338
eventName: "mousedown",

src/components/SplitButton/SplitButton.jsx

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
/* eslint-disable react/jsx-props-no-spreading */
12
// Libraries import
23
import React, { useCallback, useMemo, useRef, useState } from "react";
34
import cx from "classnames";
@@ -14,7 +15,7 @@ import { isInsideClass } from "../../utils/dom-utils";
1415
import useKeyEvent from "../../hooks/useKeyEvent";
1516

1617
// Components import
17-
import Button, { BUTTON_PROP_TYPES } from "../Button/Button";
18+
import Button from "../Button/Button";
1819
import Dialog from "../Dialog/Dialog";
1920
import useEventListener from "../../hooks/useEventListener";
2021
import DropdownChevronDown from "../Icon/Icons/components/DropdownChevronDown";
@@ -86,15 +87,15 @@ const SplitButton = ({
8687
if (!shouldSetActive(e)) return;
8788
setIsActive(true);
8889
},
89-
[setIsActive, disabled]
90+
[setIsActive, shouldSetActive]
9091
);
9192
const setNotActive = useCallback(() => setIsActive(false), [setIsActive]);
9293
const setActiveOnEnter = useCallback(
9394
e => {
9495
if (!shouldSetActive(e)) return;
9596
setIsActive(true);
9697
},
97-
[setIsActive, disabled]
98+
[setIsActive, shouldSetActive]
9899
);
99100

100101
const showDialog = useCallback(() => {

0 commit comments

Comments
 (0)