Skip to content
This repository has been archived by the owner on Feb 16, 2024. It is now read-only.

Commit

Permalink
Progress bar state must be stored on switching tabs
Browse files Browse the repository at this point in the history
  • Loading branch information
hbjORbj committed Jan 2, 2024
1 parent 723f02b commit 803341d
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -150,7 +150,6 @@ const getCodemodNodeRenderer =
? `Processed ${progress.processedFileNumber} / ${progress.totalFileNumber} files`
: 'Processing all files...'}
</p>

{renderProgressBar(progress)}
</div>
</div>
Expand Down
3 changes: 2 additions & 1 deletion intuita-webview/src/codemodList/TreeView/ProgressBar.tsx
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
import { Line } from 'rc-progress';
import { memo } from 'react';

const ProgressBar = (
props: Readonly<{
Expand All @@ -17,4 +18,4 @@ const ProgressBar = (
</div>
);

export default ProgressBar;
export default memo(ProgressBar);

0 comments on commit 803341d

Please sign in to comment.