Skip to content

Commit

Permalink
fix: fix cr
Browse files Browse the repository at this point in the history
  • Loading branch information
anlyyao committed Nov 11, 2024
1 parent 5cfaa51 commit bd477dc
Show file tree
Hide file tree
Showing 6 changed files with 3,750 additions and 4 deletions.
2 changes: 1 addition & 1 deletion src/rate/Rate.tsx
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
import { useSize } from 'ahooks';
import cx from 'classnames';
import React, { forwardRef, useCallback, useEffect, useMemo, useRef, useState } from 'react';
import { usePrefixClass } from 'tdesign-mobile-react/hooks/useClass';
import useDefault from '../_util/useDefault';
import type { StyledProps } from '../common';
import useDefaultProps from '../hooks/useDefaultProps';
import { usePrefixClass } from '../hooks/useClass';
import { rateDefaultProps } from './defaultProps';
import { RateIcon } from './RateIcon';
import { RateText } from './RateText';
Expand Down
2 changes: 1 addition & 1 deletion src/rate/RateIcon.tsx
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import cx from 'classnames';
import React, { cloneElement, ReactNode, useMemo, useRef } from 'react';
import { StarFilledIcon } from 'tdesign-icons-react';
import { usePrefixClass } from 'tdesign-mobile-react/hooks/useClass';
import { usePrefixClass } from '../hooks/useClass';
import { TdRateProps } from './type';

type Props = Required<Pick<TdRateProps, 'icon' | 'color'>> & {
Expand Down
2 changes: 1 addition & 1 deletion src/rate/RateText.tsx
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import cx from 'classnames';
import React from 'react';
import { usePrefixClass } from 'tdesign-mobile-react/hooks/useClass';
import { usePrefixClass } from '../hooks/useClass';
import { TdRateProps } from './type';

type Props = {
Expand Down
2 changes: 1 addition & 1 deletion src/rate/RateTips.tsx
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import { useClickAway } from 'ahooks';
import cx from 'classnames';
import React, { ReactNode, useRef } from 'react';
import { usePrefixClass } from 'tdesign-mobile-react/hooks/useClass';
import { usePrefixClass } from '../hooks/useClass';
import { TdRateProps } from './type';

type Props = {
Expand Down
Loading

0 comments on commit bd477dc

Please sign in to comment.