File tree Expand file tree Collapse file tree
packages/components/src/components/cards Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -605,7 +605,7 @@ export const BaseCard = React.memo((props: BaseCardProps) => {
605605 < Spacer flex = { 1 } />
606606 </ View >
607607
608- < CardItemSeparator muted = { false } />
608+ < CardItemSeparator muted = { isRead } />
609609 </ View >
610610 )
611611} )
Original file line number Diff line number Diff line change 11import React from 'react'
22
3- import { ThemeColors } from '@devhub/core'
3+ import { isItemRead , ThemeColors } from '@devhub/core'
44import { Separator , separatorSize } from '../../common/Separator'
55import { useTheme } from '../../context/ThemeContext'
66
@@ -28,16 +28,16 @@ export interface CardItemSeparatorProps {
2828}
2929
3030export function CardItemSeparator ( props : CardItemSeparatorProps ) {
31- const { muted : _muted } = props
31+ const { leadingItem , muted : _muted } = props
3232
3333 const theme = useTheme ( )
3434
3535 const muted =
3636 typeof _muted === 'boolean'
3737 ? _muted
38- : // : leadingItem
39- // ? isItemRead(leadingItem)
40- false
38+ : leadingItem
39+ ? isItemRead ( leadingItem )
40+ : false
4141
4242 const cardItemSeparatorThemeColors = getCardItemSeparatorThemeColors ( {
4343 isDark : theme . isDark ,
You can’t perform that action at this time.
0 commit comments