0114 요청사항 수정 .
This commit is contained in:
1 parent
d94dc76ccf
commit
34ea32319c
2 files changed
+10
-25
No files matched your search
@@ -1,5 +1,5 @@
|
||||
|
||||
import React, { useState } from 'react';
|
||||
import React from 'react';
|
||||
import { CrawlingResponse } from '../../types/api';
|
||||
|
||||
interface AnalysisResultSectionProps {
|
||||
@@ -88,7 +88,6 @@ const AnalysisResultSection: React.FC<AnalysisResultSectionProps> = ({ onBack, o
|
||||
const { processed_info, marketing_analysis } = data;
|
||||
const tags = marketing_analysis.tags || [];
|
||||
const facilities = marketing_analysis.facilities || [];
|
||||
const [showFullReport, setShowFullReport] = useState(false);
|
||||
const reportSections = parseReport(marketing_analysis.report);
|
||||
|
||||
return (
|
||||
@@ -132,12 +131,6 @@ const AnalysisResultSection: React.FC<AnalysisResultSectionProps> = ({ onBack, o
|
||||
|
||||
{/* Marketing Analysis Summary */}
|
||||
<div className="report-section">
|
||||
<button
|
||||
onClick={() => setShowFullReport(!showFullReport)}
|
||||
className="report-toggle"
|
||||
>
|
||||
{showFullReport ? '간략히 보기' : '자세히 보기'}
|
||||
</button>
|
||||
<div className="report-content custom-scrollbar">
|
||||
{reportSections.length === 0 ? (
|
||||
<div>
|
||||
@@ -145,7 +138,7 @@ const AnalysisResultSection: React.FC<AnalysisResultSectionProps> = ({ onBack, o
|
||||
? formatReportText(marketing_analysis.report)
|
||||
: '분석 결과가 없습니다.'}
|
||||
</div>
|
||||
) : showFullReport ? (
|
||||
) : (
|
||||
<div className="report-sections">
|
||||
{reportSections.map((section, idx) => (
|
||||
<div key={idx}>
|
||||
@@ -156,14 +149,6 @@ const AnalysisResultSection: React.FC<AnalysisResultSectionProps> = ({ onBack, o
|
||||
</div>
|
||||
))}
|
||||
</div>
|
||||
) : (
|
||||
<div>
|
||||
{formatReportText(
|
||||
reportSections[0]?.content.length > 150
|
||||
? `${reportSections[0].content.slice(0, 150)}...`
|
||||
: reportSections[0]?.content || ''
|
||||
)}
|
||||
</div>
|
||||
)}
|
||||
</div>
|
||||
</div>
|
||||
|
||||
Reference in new issue
Block a user