Skip to content

Commit

Permalink
refactor: refactor bubble loading.tsx (#225)
Browse files Browse the repository at this point in the history
  • Loading branch information
afc163 authored Nov 24, 2024
1 parent 5be21dc commit 80c558f
Showing 1 changed file with 7 additions and 10 deletions.
17 changes: 7 additions & 10 deletions components/bubble/loading.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -4,15 +4,12 @@ interface LoadingProps {
prefixCls?: string;
}

const Loading: React.FC<Readonly<LoadingProps>> = (props) => {
const { prefixCls } = props;
return (
<span className={`${prefixCls}-dot`}>
<i className={`${prefixCls}-dot-item`} key={`item-${1}`} />
<i className={`${prefixCls}-dot-item`} key={`item-${2}`} />
<i className={`${prefixCls}-dot-item`} key={`item-${3}`} />
</span>
);
};
const Loading: React.FC<Readonly<LoadingProps>> = ({ prefixCls }) => (
<span className={`${prefixCls}-dot`}>
<i className={`${prefixCls}-dot-item`} key={`item-${1}`} />
<i className={`${prefixCls}-dot-item`} key={`item-${2}`} />
<i className={`${prefixCls}-dot-item`} key={`item-${3}`} />
</span>
);

export default Loading;

0 comments on commit 80c558f

Please sign in to comment.