Skip to content

Commit 6535ced

Browse files
committed
new icon
1 parent 228109a commit 6535ced

File tree

2 files changed

+18
-18
lines changed

2 files changed

+18
-18
lines changed

resources/icon.png

64 KB
Loading

src/renderer/src/components/solutions/content-section.tsx

Lines changed: 18 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -9,22 +9,22 @@ export const ContentSection = ({
99
content: React.ReactNode
1010
isLoading: boolean
1111
}) => {
12-
if (typeof content !== 'string') {
13-
return (
14-
<div className="space-y-2">
15-
<h2 className="text-[13px] font-medium text-white tracking-wide">{title}</h2>
16-
{isLoading ? (
17-
<div className="mt-4 flex">
18-
<p className="text-xs bg-gradient-to-r from-gray-300 via-gray-100 to-gray-300 bg-clip-text text-transparent animate-pulse">
19-
Extracting problem statement...
20-
</p>
21-
</div>
22-
) : (
23-
<div className="text-[13px] leading-[1.6] text-gray-100 max-w-[600px] prose prose-sm prose-invert">
24-
{content}
25-
</div>
26-
)}
27-
</div>
28-
)
29-
}
12+
if (!content) return null
13+
14+
return (
15+
<div className="space-y-2">
16+
<h2 className="text-[13px] font-medium text-white tracking-wide">{title}</h2>
17+
{isLoading ? (
18+
<div className="mt-4 flex">
19+
<p className="text-xs bg-gradient-to-r from-gray-300 via-gray-100 to-gray-300 bg-clip-text text-transparent animate-pulse">
20+
Extracting problem statement...
21+
</p>
22+
</div>
23+
) : (
24+
<div className="text-[13px] leading-[1.6] text-gray-100 max-w-[600px] prose prose-sm prose-invert">
25+
{content}
26+
</div>
27+
)}
28+
</div>
29+
)
3030
}

0 commit comments

Comments
 (0)