Skip to content

Commit a640e61

Browse files
author
刘欢
committed
refactor: Unified CLSX import method
1 parent 1345146 commit a640e61

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

src/Item.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
import * as React from 'react';
2-
import clsx from 'clsx';
2+
import { clsx } from 'clsx';
33
import ResizeObserver from '@rc-component/resize-observer';
44
import type { ComponentType } from './RawItem';
55

src/Overflow.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
import * as React from 'react';
22
import { useState, useMemo, useCallback } from 'react';
3-
import clsx from 'clsx';
3+
import { clsx } from 'clsx';
44
import ResizeObserver from '@rc-component/resize-observer';
55
import useLayoutEffect from '@rc-component/util/lib/hooks/useLayoutEffect';
66
import Item from './Item';

src/RawItem.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
import * as React from 'react';
2-
import clsx from 'clsx';
2+
import { clsx } from 'clsx';
33
import Item from './Item';
44
import { OverflowContext } from './context';
55

0 commit comments

Comments
 (0)