File tree Expand file tree Collapse file tree 2 files changed +18
-18
lines changed
src/renderer/src/components/solutions Expand file tree Collapse file tree 2 files changed +18
-18
lines changed Original file line number Diff line number Diff 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}
You can’t perform that action at this time.
0 commit comments