Skip to content

The fastest, cheapest, most efficient open-source agent harness. Run more than 500 agents on a $10 VPS.

refactor(settings): remove wrapping Card component from RoutingModeCards

Steven Enamakelf940fe09b3de
diff --git a/app/src/components/settings/panels/ai/RoutingModeCards.tsx b/app/src/components/settings/panels/ai/RoutingModeCards.tsx
index ce1311195d..aecb10d9c7 100644
--- a/app/src/components/settings/panels/ai/RoutingModeCards.tsx
+++ b/app/src/components/settings/panels/ai/RoutingModeCards.tsx
@@ -6,7 +6,6 @@
import { cn } from '../../../../lib/cn';
import { useT } from '../../../../lib/i18n/I18nContext';
import Alert from '../../../ui/Alert';
-import Card from '../../../ui/Card';
import Label from '../../../ui/Label';
import { RadioGroupItem, RadioGroupRoot } from '../../../ui/RadioGroup';
import type { RoutingMode } from './aiPanelTypes';
@@ -52,8 +51,7 @@ export const RoutingModeCards = ({
}) => {
const { t } = useT();
return (
- <Card title={t('settings.ai.routing')} description={t('settings.ai.routingDesc')} className="w-full">
- <div className="flex flex-col gap-3 p-4">
+ <div className="flex w-full flex-col gap-3">
<RadioGroupRoot
aria-label={t('settings.ai.routing')}
value={effectiveRoutingMode}
@@ -86,8 +84,7 @@ export const RoutingModeCards = ({
{effectiveRoutingMode === 'managed' ? (
<Alert variant="success">{t('settings.ai.routing.managedMsg')}</Alert>
) : null}
- </div>
- </Card>
+ </div>
);
};