Skip to content

Commit

Permalink
chore: use type-only keyword (#15412)
Browse files Browse the repository at this point in the history
Co-authored-by: Andrea N. Cardona <cardona.n.andrea@gmail.com>
  • Loading branch information
dbrugger and andreancardona committed Jan 3, 2024
1 parent f498207 commit 3cc8599
Show file tree
Hide file tree
Showing 6 changed files with 10 additions and 6 deletions.
2 changes: 1 addition & 1 deletion packages/react/src/components/DataTable/TableExpandRow.tsx
Expand Up @@ -7,7 +7,7 @@

import cx from 'classnames';
import PropTypes from 'prop-types';
import React, { MouseEventHandler, PropsWithChildren } from 'react';
import React, { type MouseEventHandler, type PropsWithChildren } from 'react';
import { ChevronRight } from '@carbon/icons-react';
import TableCell from './TableCell';
import { usePrefix } from '../../internal/usePrefix';
Expand Down
2 changes: 1 addition & 1 deletion packages/react/src/components/DataTable/TableHeader.tsx
Expand Up @@ -7,7 +7,7 @@

import cx from 'classnames';
import PropTypes, { ReactNodeLike } from 'prop-types';
import React, { MouseEventHandler, useRef } from 'react';
import React, { type MouseEventHandler, useRef } from 'react';
import {
ArrowUp as Arrow,
ArrowsVertical as Arrows,
Expand Down
2 changes: 1 addition & 1 deletion packages/react/src/components/ListBox/ListBox.tsx
Expand Up @@ -6,7 +6,7 @@
*/

import cx from 'classnames';
import React, { KeyboardEvent, MouseEvent, useContext } from 'react';
import React, { type KeyboardEvent, type MouseEvent, useContext } from 'react';
import PropTypes from 'prop-types';
import deprecate from '../../prop-types/deprecate';
import { ListBoxType, ListBoxSize } from './ListBoxPropTypes';
Expand Down
2 changes: 1 addition & 1 deletion packages/react/src/components/Slider/Slider.tsx
Expand Up @@ -5,7 +5,7 @@
* LICENSE file in the root directory of this source tree.
*/

import React, { KeyboardEventHandler, PureComponent } from 'react';
import React, { type KeyboardEventHandler, PureComponent } from 'react';
import PropTypes, { ReactNodeLike } from 'prop-types';

import classNames from 'classnames';
Expand Down
6 changes: 5 additions & 1 deletion packages/react/src/components/Toggle/Toggle.tsx
Expand Up @@ -5,7 +5,11 @@
* LICENSE file in the root directory of this source tree.
*/

import React, { KeyboardEventHandler, MouseEventHandler, useRef } from 'react';
import React, {
type KeyboardEventHandler,
type MouseEventHandler,
useRef,
} from 'react';
import PropTypes from 'prop-types';
import classNames from 'classnames';
import { useControllableState } from '../../internal/useControllableState';
Expand Down
2 changes: 1 addition & 1 deletion packages/react/src/components/UIShell/SideNavSwitcher.tsx
Expand Up @@ -8,7 +8,7 @@
import { ChevronDown } from '@carbon/icons-react';
import cx from 'classnames';
import PropTypes from 'prop-types';
import React, { ChangeEventHandler, forwardRef } from 'react';
import React, { type ChangeEventHandler, forwardRef } from 'react';
import { useId } from '../../internal/useId';
import { usePrefix } from '../../internal/usePrefix';

Expand Down

0 comments on commit 3cc8599

Please sign in to comment.