mirror of
https://github.com/mue/mue.git
synced 2026-07-28 11:11:08 +02:00
perf: use memo, fix quicklinks key err
This commit is contained in:
@@ -1,4 +1,6 @@
|
||||
export default function ProgressBar({ count, currentTab, switchTab }) {
|
||||
import { memo } from 'react';
|
||||
|
||||
function ProgressBar({ count, currentTab, switchTab }) {
|
||||
return (
|
||||
<div className="progressbar">
|
||||
{count.map((num) => {
|
||||
@@ -14,3 +16,5 @@ export default function ProgressBar({ count, currentTab, switchTab }) {
|
||||
</div>
|
||||
);
|
||||
}
|
||||
|
||||
export default memo(ProgressBar);
|
||||
Reference in New Issue
Block a user