mirror of
https://github.com/google-gemini/gemini-cli.git
synced 2026-03-12 15:10:59 -07:00
refactor: remove width prop from Card component and add as const to test array.
This commit is contained in:
@@ -17,6 +17,7 @@ describe('Card', () => {
|
||||
suffix: '0.26.0 → 0.27.0',
|
||||
prefix: true,
|
||||
body: 'Installed via Homebrew. Please update with "brew upgrade gemini-cli".',
|
||||
width: 40,
|
||||
},
|
||||
{
|
||||
variant: 'information',
|
||||
@@ -46,17 +47,11 @@ describe('Card', () => {
|
||||
prefix: true,
|
||||
body: 'Listed 39 item(s).',
|
||||
},
|
||||
])(
|
||||
] as const)(
|
||||
'renders a $variant card with prefix=$prefix',
|
||||
({ variant, title, suffix, prefix, body }) => {
|
||||
const { lastFrame } = render(
|
||||
<Card
|
||||
variant={variant}
|
||||
title={title}
|
||||
suffix={suffix}
|
||||
prefix={prefix}
|
||||
width={80}
|
||||
>
|
||||
<Card variant={variant} title={title} suffix={suffix} prefix={prefix}>
|
||||
<Text>{body}</Text>
|
||||
</Card>,
|
||||
);
|
||||
|
||||
@@ -23,7 +23,6 @@ export interface CardProps {
|
||||
children?: React.ReactNode;
|
||||
/** The styling and intent of the card. */
|
||||
variant?: 'information' | 'success' | 'warning' | 'error' | 'confirmation';
|
||||
width?: number | string;
|
||||
}
|
||||
|
||||
const CardDisplay: React.FC<CardProps> = ({
|
||||
|
||||
Reference in New Issue
Block a user