remove extraneous comments
This commit is contained in:
@@ -50,7 +50,6 @@ export function DraftItem({
|
|||||||
(pressed || hovered) && t.atoms.bg_contrast_25,
|
(pressed || hovered) && t.atoms.bg_contrast_25,
|
||||||
]}>
|
]}>
|
||||||
<View style={[a.p_md, a.gap_sm]}>
|
<View style={[a.p_md, a.gap_sm]}>
|
||||||
{/* Missing media warning */}
|
|
||||||
{draft.hasMissingMedia && (
|
{draft.hasMissingMedia && (
|
||||||
<View
|
<View
|
||||||
style={[
|
style={[
|
||||||
@@ -66,7 +65,6 @@ export function DraftItem({
|
|||||||
</View>
|
</View>
|
||||||
)}
|
)}
|
||||||
|
|
||||||
{/* Posts */}
|
|
||||||
{draft.posts.map((post, index) => (
|
{draft.posts.map((post, index) => (
|
||||||
<DraftPostRow
|
<DraftPostRow
|
||||||
key={post.id}
|
key={post.id}
|
||||||
@@ -117,10 +115,8 @@ function DraftPostRow({
|
|||||||
|
|
||||||
return (
|
return (
|
||||||
<View style={[a.flex_row, a.gap_sm]}>
|
<View style={[a.flex_row, a.gap_sm]}>
|
||||||
{/* Avatar column with thread line */}
|
|
||||||
<View style={[a.align_center]}>
|
<View style={[a.align_center]}>
|
||||||
<UserAvatar type="user" size={42} avatar={avatarUrl} />
|
<UserAvatar type="user" size={42} avatar={avatarUrl} />
|
||||||
{/* Thread line connecting posts */}
|
|
||||||
{!isLast && (
|
{!isLast && (
|
||||||
<View
|
<View
|
||||||
style={[
|
style={[
|
||||||
@@ -136,9 +132,7 @@ function DraftPostRow({
|
|||||||
)}
|
)}
|
||||||
</View>
|
</View>
|
||||||
|
|
||||||
{/* Content column */}
|
|
||||||
<View style={[a.flex_1, a.gap_2xs]}>
|
<View style={[a.flex_1, a.gap_2xs]}>
|
||||||
{/* Header row: name, handle, timestamp, menu */}
|
|
||||||
<View style={[a.flex_row, a.align_center, a.gap_xs]}>
|
<View style={[a.flex_row, a.align_center, a.gap_xs]}>
|
||||||
<View style={[a.flex_row, a.align_center, a.flex_1, a.gap_xs]}>
|
<View style={[a.flex_row, a.align_center, a.flex_1, a.gap_xs]}>
|
||||||
{displayName && (
|
{displayName && (
|
||||||
@@ -167,7 +161,6 @@ function DraftPostRow({
|
|||||||
</TimeElapsed>
|
</TimeElapsed>
|
||||||
</View>
|
</View>
|
||||||
|
|
||||||
{/* Overflow menu (only on first post) */}
|
|
||||||
{isFirst && (
|
{isFirst && (
|
||||||
<Button
|
<Button
|
||||||
label={_(msg`More options`)}
|
label={_(msg`More options`)}
|
||||||
@@ -184,7 +177,6 @@ function DraftPostRow({
|
|||||||
)}
|
)}
|
||||||
</View>
|
</View>
|
||||||
|
|
||||||
{/* Post text - full, not truncated */}
|
|
||||||
{post.text ? (
|
{post.text ? (
|
||||||
<Text style={[a.text_md, a.leading_snug, t.atoms.text]}>
|
<Text style={[a.text_md, a.leading_snug, t.atoms.text]}>
|
||||||
{post.text}
|
{post.text}
|
||||||
@@ -201,7 +193,6 @@ function DraftPostRow({
|
|||||||
</Text>
|
</Text>
|
||||||
)}
|
)}
|
||||||
|
|
||||||
{/* Media preview */}
|
|
||||||
<DraftMediaPreview post={post} />
|
<DraftMediaPreview post={post} />
|
||||||
</View>
|
</View>
|
||||||
</View>
|
</View>
|
||||||
@@ -219,7 +210,6 @@ function DraftMediaPreview({post}: {post: DraftPostDisplay}) {
|
|||||||
|
|
||||||
useEffect(() => {
|
useEffect(() => {
|
||||||
async function loadMedia() {
|
async function loadMedia() {
|
||||||
// Load images
|
|
||||||
if (post.images && post.images.length > 0) {
|
if (post.images && post.images.length > 0) {
|
||||||
const loaded: LoadedImage[] = []
|
const loaded: LoadedImage[] = []
|
||||||
for (const image of post.images) {
|
for (const image of post.images) {
|
||||||
@@ -233,7 +223,6 @@ function DraftMediaPreview({post}: {post: DraftPostDisplay}) {
|
|||||||
setLoadedImages(loaded)
|
setLoadedImages(loaded)
|
||||||
}
|
}
|
||||||
|
|
||||||
// Load video thumbnail
|
|
||||||
if (post.video?.exists && post.video.localPath) {
|
if (post.video?.exists && post.video.localPath) {
|
||||||
try {
|
try {
|
||||||
const url = await storage.loadMediaFromLocal(post.video.localPath)
|
const url = await storage.loadMediaFromLocal(post.video.localPath)
|
||||||
|
|||||||
Reference in New Issue
Block a user