Skip to content

Commit 511161b

Browse files
committed
fix: colleague highlight
1 parent 0eae71a commit 511161b

2 files changed

Lines changed: 10 additions & 4 deletions

File tree

src/components/Foundary/Views/ColleaguesView.tsx

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,7 @@ import {
3131
} from '../types'
3232
import { motion, AnimatePresence } from 'motion/react'
3333
import { DashboardHero } from '../../Heros/DashboardHero'
34+
import { cn } from '@/components/dc-temp/utils'
3435
interface ColleaguesViewProps {
3536
initialColleagues?: Colleague[]
3637
onColleagueAdd?: (colleague: Colleague) => void
@@ -492,6 +493,9 @@ export default function ColleaguesView({
492493
onDelete={handleDeleteColleague}
493494
onViewDetails={handleViewDetails}
494495
compact={compactView}
496+
className={cn([
497+
colleague.type === 'digital' && 'border-teal-400'
498+
])}
495499
/>
496500
))}
497501
</div>
@@ -534,6 +538,9 @@ export default function ColleaguesView({
534538
onDelete={handleDeleteColleague}
535539
onViewDetails={handleViewDetails}
536540
compact={compactView}
541+
className={cn([
542+
colleague.type === 'digital' && 'border-teal-400'
543+
])}
537544
/>
538545
))}
539546
</div>

src/components/Foundary/colleague-card.tsx

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -197,12 +197,11 @@ export function ColleagueCard({
197197
</>
198198
)} */}
199199

200-
{/* {colleague.type === 'digital' && (
200+
{colleague.type === 'digital' && (
201201
<div className="flex items-center gap-2 text-muted-foreground">
202-
<Settings className="h-3 w-3" />
203-
<span>v{colleague.version}</span>
202+
<span>{colleague.description}</span>
204203
</div>
205-
)} */}
204+
)}
206205

207206
{/* <div className="flex items-center gap-2 text-muted-foreground">
208207
<Clock className="h-3 w-3" />

0 commit comments

Comments
 (0)