feat(portfolio): add expanded layout for bond position cards
Add variant="bond" to PositionCard with bond-specific CSS classes (.bondCard, .bondMain, etc.) matching the stock expanded layout. PositionSection now passes variant based on section kind. Bond cards render 3-column grid (logo | identity | value) with meta row, identical to stock cards.
This commit is contained in:
@@ -20,7 +20,13 @@ const PositionSection: FC<PositionSectionProps> = (props) => {
|
||||
key={`${position.figi}-${position.displayName}-${position.quantity}`}
|
||||
position={position}
|
||||
wide={section.wide}
|
||||
variant={section.kind === "stocks" ? "stock" : undefined}
|
||||
variant={
|
||||
section.kind === "stocks"
|
||||
? "stock"
|
||||
: section.kind === "bonds"
|
||||
? "bond"
|
||||
: undefined
|
||||
}
|
||||
/>
|
||||
))}
|
||||
</SimpleGrid>
|
||||
|
||||
Reference in New Issue
Block a user