크레딧기능 추가
This commit is contained in:
1 parent
044fd21b2d
commit
bdd52ed992
12 files changed
+153
-25
No files matched your search
@@ -38,6 +38,13 @@ const LoadingSection: React.FC<LoadingSectionProps> = ({ onComplete, isComplete
|
||||
return () => clearTimeout(timer);
|
||||
}, [isComplete]);
|
||||
|
||||
const getStepMessage = (p: number) => {
|
||||
if (p < 30) return t('analysis.loadingStep1');
|
||||
if (p < 50) return t('analysis.loadingStep2');
|
||||
if (p < 80) return t('analysis.loadingStep3');
|
||||
return t('analysis.loadingStep4');
|
||||
};
|
||||
|
||||
return (
|
||||
<div className="loading-container">
|
||||
<div className="loading-content">
|
||||
@@ -67,6 +74,7 @@ const LoadingSection: React.FC<LoadingSectionProps> = ({ onComplete, isComplete
|
||||
</div>
|
||||
<span className="loading-progress-text">{Math.floor(progress)}%</span>
|
||||
</div>
|
||||
<p className="loading-step-message">{getStepMessage(progress)}</p>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
Reference in new issue
Block a user