tangled
alpha
login
or
join now
leaflet.pub
/
leaflet
289
fork
atom
a tool for shared writing and social publishing
289
fork
atom
overview
issues
28
pulls
pipelines
add blockquote to staticpostcontent
awarm.space
7 months ago
47ebfbad
651ae888
+12
1 changed file
expand all
collapse all
unified
split
app
lish
[did]
[publication]
[rkey]
StaticPostContent.tsx
+12
app/lish/[did]/[publication]/[rkey]/StaticPostContent.tsx
···
1
1
import {
2
2
+
PubLeafletBlocksBlockquote,
2
3
PubLeafletBlocksCode,
3
4
PubLeafletBlocksHeader,
4
5
PubLeafletBlocksHorizontalRule,
···
43
44
let b = block;
44
45
45
46
switch (true) {
47
47
+
case PubLeafletBlocksBlockquote.isMain(b.block): {
48
48
+
return (
49
49
+
<blockquote className={`border-l-2 border-border pl-2`}>
50
50
+
<BaseTextBlock
51
51
+
facets={b.block.facets}
52
52
+
plaintext={b.block.plaintext}
53
53
+
index={[]}
54
54
+
/>
55
55
+
</blockquote>
56
56
+
);
57
57
+
}
46
58
case PubLeafletBlocksHorizontalRule.isMain(b.block): {
47
59
return <hr className="my-2 w-full border-border-light" />;
48
60
}