32 |
{title}
33 | {hasContent && (
34 |
35 | {feedItem.content}
36 |
37 | )}
38 |
39 | >
40 | )
41 | }
42 |
43 | export default DetailFeedItem
44 |
--------------------------------------------------------------------------------
/packages/client/src/ui/components/Feed/Window/List.tsx:
--------------------------------------------------------------------------------
1 | import cx from 'clsx'
2 | import { memo, useMemo } from 'react'
3 | import { FixedSizeList, type ListChildComponentProps } from 'react-window'
4 |
5 | import { SCROLLER_PADDING_Y } from '#constants'
6 | import FeedItem from '#ui/components/Feed/FeedItem/FeedItem'
7 |
8 | import { listItemKey, parseHeight } from './utils'
9 | import type { ListData, ListProps } from './types'
10 |
11 | import classes from './List.module.css'
12 |
13 | const ListRow = memo(function ListRow({
14 | data: { items, tab },
15 | index,
16 | style,
17 | }: ListChildComponentProps