임시 저장
This commit is contained in:
1 parent
bdd52ed992
commit
82dcda0038
10 files changed
+73
-21
No files matched your search
@@ -12,6 +12,7 @@ interface SocialPostingModalProps {
|
||||
isOpen: boolean;
|
||||
onClose: () => void;
|
||||
video: VideoListItem | null;
|
||||
onGoToCalendar?: () => void;
|
||||
}
|
||||
|
||||
type PrivacyType = 'public' | 'unlisted' | 'private';
|
||||
@@ -116,7 +117,8 @@ const MiniCalendar: React.FC<{
|
||||
const SocialPostingModal: React.FC<SocialPostingModalProps> = ({
|
||||
isOpen,
|
||||
onClose,
|
||||
video
|
||||
video,
|
||||
onGoToCalendar,
|
||||
}) => {
|
||||
const { t } = useTranslation();
|
||||
const tutorial = useTutorial();
|
||||
@@ -150,6 +152,7 @@ const SocialPostingModal: React.FC<SocialPostingModalProps> = ({
|
||||
// 업로드 정보 (모달이 닫힌 후에도 유지)
|
||||
const [uploadVideoTitle, setUploadVideoTitle] = useState<string>('');
|
||||
const [uploadChannelName, setUploadChannelName] = useState<string>('');
|
||||
const [uploadIsScheduled, setUploadIsScheduled] = useState(false);
|
||||
|
||||
// 드롭다운 외부 클릭 시 닫기
|
||||
useEffect(() => {
|
||||
@@ -300,6 +303,7 @@ const SocialPostingModal: React.FC<SocialPostingModalProps> = ({
|
||||
// 업로드 정보 저장 (모달이 닫힌 후에도 유지)
|
||||
setUploadVideoTitle(title.trim());
|
||||
setUploadChannelName(selectedAcc.display_name);
|
||||
setUploadIsScheduled(publishTime === 'schedule');
|
||||
setShowUploadProgress(true);
|
||||
|
||||
try {
|
||||
@@ -401,6 +405,7 @@ const SocialPostingModal: React.FC<SocialPostingModalProps> = ({
|
||||
setUploadErrorMessage(undefined);
|
||||
setUploadVideoTitle('');
|
||||
setUploadChannelName('');
|
||||
setUploadIsScheduled(false);
|
||||
};
|
||||
|
||||
const handleClose = () => {
|
||||
@@ -429,7 +434,8 @@ const SocialPostingModal: React.FC<SocialPostingModalProps> = ({
|
||||
channelName={uploadChannelName || selectedAccount?.display_name || ''}
|
||||
youtubeUrl={uploadYoutubeUrl}
|
||||
errorMessage={uploadErrorMessage}
|
||||
isScheduled={publishTime === 'schedule'}
|
||||
isScheduled={uploadIsScheduled}
|
||||
onGoToCalendar={onGoToCalendar}
|
||||
/>
|
||||
);
|
||||
|
||||
|
||||
Reference in new issue
Block a user