Update eslint to 8.27.0
This commit is contained in:
@@ -11,11 +11,17 @@ export type Props = Pick<React.HTMLAttributes<HTMLDivElement>, 'className'> & {
|
||||
readonly total: number;
|
||||
};
|
||||
|
||||
export const ProgressBar = React.memo(({ className, count, total }: Props) => (
|
||||
<div className={classnames(styles.base, className)}>
|
||||
<div
|
||||
className={styles.bar}
|
||||
style={{ width: `${Math.floor((count / total) * 100)}%` }}
|
||||
/>
|
||||
</div>
|
||||
));
|
||||
export const ProgressBar = React.memo(function ProgressBarInner({
|
||||
className,
|
||||
count,
|
||||
total,
|
||||
}: Props) {
|
||||
return (
|
||||
<div className={classnames(styles.base, className)}>
|
||||
<div
|
||||
className={styles.bar}
|
||||
style={{ width: `${Math.floor((count / total) * 100)}%` }}
|
||||
/>
|
||||
</div>
|
||||
);
|
||||
});
|
||||
|
Reference in New Issue
Block a user