{}}
+ openMedia={props.openMedia}
+ />
)}
/>
diff --git a/renderer/components/detail/Thread.tsx b/renderer/components/detail/Thread.tsx
index c28a7325..311bb8a5 100644
--- a/renderer/components/detail/Thread.tsx
+++ b/renderer/components/detail/Thread.tsx
@@ -2,9 +2,11 @@ import { Entity, MegalodonInterface } from 'megalodon'
import { useEffect, useState } from 'react'
import { Virtuoso } from 'react-virtuoso'
import Status from '../timelines/status/Status'
+import { Account } from '@/db'
type Props = {
client: MegalodonInterface
+ account: Account
status_id: string
openMedia: (media: Entity.Attachment) => void
}
@@ -33,7 +35,14 @@ export default function Thread(props: Props) {
style={{ height: 'calc(100% - 50px)' }}
data={[...ancestors, status, ...descendants].filter(s => s !== null)}
itemContent={(_, status) => (
- {}} openMedia={props.openMedia} />
+ {}}
+ openMedia={props.openMedia}
+ />
)}
/>
>
diff --git a/renderer/components/detail/profile/Timeline.tsx b/renderer/components/detail/profile/Timeline.tsx
index 13bdad1e..46366ddb 100644
--- a/renderer/components/detail/profile/Timeline.tsx
+++ b/renderer/components/detail/profile/Timeline.tsx
@@ -1,9 +1,11 @@
import Status from '@/components/timelines/status/Status'
+import { Account } from '@/db'
import { Entity, MegalodonInterface } from 'megalodon'
import { useEffect, useState } from 'react'
type Props = {
client: MegalodonInterface
+ account: Account
user_id: string
openMedia: (media: Entity.Attachment) => void
}
@@ -43,6 +45,7 @@ export default function Timeline(props: Props) {
{statuses.map((status, index) => (
setStatuses(current => updateStatus(current, status))}
diff --git a/renderer/components/timelines/Notifications.tsx b/renderer/components/timelines/Notifications.tsx
index a3fa88d7..33de176b 100644
--- a/renderer/components/timelines/Notifications.tsx
+++ b/renderer/components/timelines/Notifications.tsx
@@ -125,6 +125,7 @@ export default function Notifications(props: Props) {
itemContent={(_, notification) => (
(
setStatuses(current => updateStatus(current, status))}
@@ -194,7 +195,7 @@ export default function Timeline(props: Props) {