Skip to content

Commit 6dd0a3b

Browse files
committed
reformat
1 parent b304faf commit 6dd0a3b

2 files changed

Lines changed: 18 additions & 4 deletions

File tree

src/lib/mdxParser.tsx

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,9 @@ function ParsedText({ content }: { content: string }) {
1010
.use(rehypeStringify)
1111
.processSync(content).value
1212

13-
return <div className="parsed-text" dangerouslySetInnerHTML={{ __html: output }} />
13+
return (
14+
<div className="parsed-text" dangerouslySetInnerHTML={{ __html: output }} />
15+
)
1416
}
1517

1618
export default ParsedText

src/pages/simplesites/[slug].tsx

Lines changed: 15 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -28,9 +28,21 @@ function Simplesite({ simplesite }: { simplesite: SimpleSite }) {
2828
const color = pickColor(title)
2929

3030
const allBlocks = [
31-
...(textBlocks ?? []).map((b) => ({ type: 'text' as const, order: b.order, data: b })),
32-
...(multiColumnBlocks ?? []).map((b) => ({ type: 'multiColumn' as const, order: b.order, data: b })),
33-
...(gridBlocks ?? []).map((b) => ({ type: 'grid' as const, order: b.order, data: b })),
31+
...(textBlocks ?? []).map((b) => ({
32+
type: 'text' as const,
33+
order: b.order,
34+
data: b,
35+
})),
36+
...(multiColumnBlocks ?? []).map((b) => ({
37+
type: 'multiColumn' as const,
38+
order: b.order,
39+
data: b,
40+
})),
41+
...(gridBlocks ?? []).map((b) => ({
42+
type: 'grid' as const,
43+
order: b.order,
44+
data: b,
45+
})),
3446
]
3547

3648
const orderedBlocks = sortBy(allBlocks, [prop('order'), 'asc'])

0 commit comments

Comments
 (0)