File tree 1 file changed +4
-4
lines changed
1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change 1
1
import React , { useState , useEffect } from 'react' ;
2
2
import { useLocation , useNavigate } from 'react-router-dom' ;
3
3
import DebateIconBar from './components/DebateIconBar' ;
4
- import VoteResult from './components/VoteResult' ;
4
+ // import VoteResult from './components/VoteResult';
5
5
import { createDebate } from '@apis/WriteDebate/createDebate' ;
6
6
import { refreshAccessToken } from '@apis/refreshAccessToken' ;
7
7
import { getKeywordById } from '@apis/getKeywordById' ; // 키워드 ID로 키워드 이름을 불러오는 API 함수 임포트
@@ -87,7 +87,7 @@ const DebateCreatePage: React.FC = () => {
87
87
title ,
88
88
content ,
89
89
imageFile || undefined ,
90
- voteItems . length > 0 ? voteItems . map ( ( item ) => ( { optionText : item } ) ) : [ ]
90
+ // voteItems.length > 0 ? voteItems.map((item) => ({ optionText: item })) : []
91
91
) ;
92
92
navigate ( '/keyword' ) ;
93
93
} catch ( error ) {
@@ -127,11 +127,11 @@ const DebateCreatePage: React.FC = () => {
127
127
/>
128
128
129
129
{ /* 투표 항목이 있을 경우 표시 */ }
130
- { voteItems . length > 0 && (
130
+ { /* { voteItems.length > 0 && (
131
131
<div className="mt-4">
132
132
<VoteResult items={voteItems} />
133
133
</div>
134
- ) }
134
+ )} */ }
135
135
136
136
{ /* 미리보기 이미지가 있을 경우 표시 */ }
137
137
{ previewUrl && (
You can’t perform that action at this time.
0 commit comments