Skip to content

Commit 566f43d

Browse files
authored
Merge pull request #154 from IT-Pick/fix-ys/finish-up
Del: vote 제거
2 parents 9df8597 + e4cc8c5 commit 566f43d

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

src/pages/WritePostPage/DebateCreatePage.tsx

+4-4
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
import React, { useState, useEffect } from 'react';
22
import { useLocation, useNavigate } from 'react-router-dom';
33
import DebateIconBar from './components/DebateIconBar';
4-
import VoteResult from './components/VoteResult';
4+
// import VoteResult from './components/VoteResult';
55
import { createDebate } from '@apis/WriteDebate/createDebate';
66
import { refreshAccessToken } from '@apis/refreshAccessToken';
77
import { getKeywordById } from '@apis/getKeywordById'; // 키워드 ID로 키워드 이름을 불러오는 API 함수 임포트
@@ -87,7 +87,7 @@ const DebateCreatePage: React.FC = () => {
8787
title,
8888
content,
8989
imageFile || undefined,
90-
voteItems.length > 0 ? voteItems.map((item) => ({ optionText: item })) : []
90+
// voteItems.length > 0 ? voteItems.map((item) => ({ optionText: item })) : []
9191
);
9292
navigate('/keyword');
9393
} catch (error) {
@@ -127,11 +127,11 @@ const DebateCreatePage: React.FC = () => {
127127
/>
128128

129129
{/* 투표 항목이 있을 경우 표시 */}
130-
{voteItems.length > 0 && (
130+
{/* {voteItems.length > 0 && (
131131
<div className="mt-4">
132132
<VoteResult items={voteItems} />
133133
</div>
134-
)}
134+
)} */}
135135

136136
{/* 미리보기 이미지가 있을 경우 표시 */}
137137
{previewUrl && (

0 commit comments

Comments
 (0)