스케줄 페이지 작업 완료 .
This commit is contained in:
1 parent
29e0c7d79c
commit
4d91da9b9a
13 files changed
+1301
-49
No files matched your search
@@ -13,6 +13,7 @@ interface UploadProgressModalProps {
|
||||
channelName: string;
|
||||
youtubeUrl?: string;
|
||||
errorMessage?: string;
|
||||
isScheduled?: boolean;
|
||||
}
|
||||
|
||||
const UploadProgressModal: React.FC<UploadProgressModalProps> = ({
|
||||
@@ -24,6 +25,7 @@ const UploadProgressModal: React.FC<UploadProgressModalProps> = ({
|
||||
channelName,
|
||||
youtubeUrl,
|
||||
errorMessage,
|
||||
isScheduled = false,
|
||||
}) => {
|
||||
const { t } = useTranslation();
|
||||
if (!isOpen) return null;
|
||||
@@ -35,7 +37,7 @@ const UploadProgressModal: React.FC<UploadProgressModalProps> = ({
|
||||
case 'uploading':
|
||||
return t('upload.statusUploading');
|
||||
case 'completed':
|
||||
return t('upload.statusCompleted');
|
||||
return isScheduled ? t('upload.statusScheduled') : t('upload.statusCompleted');
|
||||
case 'failed':
|
||||
return t('upload.statusFailed');
|
||||
default:
|
||||
@@ -83,7 +85,7 @@ const UploadProgressModal: React.FC<UploadProgressModalProps> = ({
|
||||
<div className="upload-progress-modal">
|
||||
{/* Header */}
|
||||
<div className="upload-progress-header">
|
||||
<h2 className="upload-progress-title">{t('upload.title')}</h2>
|
||||
<h2 className="upload-progress-title">{isScheduled && status === 'completed' ? t('upload.titleScheduled') : t('upload.title')}</h2>
|
||||
{canClose && (
|
||||
<button className="upload-progress-close" onClick={onClose}>
|
||||
<svg width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="currentColor" strokeWidth="2">
|
||||
|
||||
Reference in new issue
Block a user