Skip to content

Commit e511a59

Browse files
format code
1 parent 97c589c commit e511a59

File tree

2 files changed

+6
-13
lines changed

2 files changed

+6
-13
lines changed

src/pages/More.tsx

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -162,7 +162,9 @@ const MorePage: React.FC = () => {
162162
<div className="bg-gray-50 p-4 rounded-lg shadow-md">
163163
{/* Category Navigation */}
164164
<div className="mb-6">
165-
<h3 className="font-bold text-xl mb-2 text-gray-900">Categories</h3>
165+
<h3 className="font-bold text-xl mb-2 text-gray-900">
166+
Categories
167+
</h3>
166168
<div className="flex flex-wrap gap-2">
167169
{categories.map((category) => (
168170
<button

src/utils/MarkdownRenderer.tsx

Lines changed: 3 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -344,10 +344,7 @@ const MarkdownRenderer: React.FC<MarkdownRendererProps> = ({
344344
h6: createHeading('h6'),
345345

346346
p: ({ children, ...props }) => (
347-
<p
348-
{...props}
349-
className="my-4 text-gray-700 leading-relaxed"
350-
>
347+
<p {...props} className="my-4 text-gray-700 leading-relaxed">
351348
{children}
352349
</p>
353350
),
@@ -531,10 +528,7 @@ const MarkdownRenderer: React.FC<MarkdownRendererProps> = ({
531528
</ol>
532529
),
533530
li: ({ children, ...props }) => (
534-
<li
535-
{...props}
536-
className="text-gray-700 leading-relaxed"
537-
>
531+
<li {...props} className="text-gray-700 leading-relaxed">
538532
{children}
539533
</li>
540534
),
@@ -573,10 +567,7 @@ const MarkdownRenderer: React.FC<MarkdownRendererProps> = ({
573567
},
574568

575569
strong: ({ children, ...props }) => (
576-
<strong
577-
{...props}
578-
className="font-semibold text-gray-900"
579-
>
570+
<strong {...props} className="font-semibold text-gray-900">
580571
{children}
581572
</strong>
582573
),

0 commit comments

Comments
 (0)