chore(ui): migrate DefaultUserSettings buttons from Tremor to antd#23787
Conversation
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
Greptile SummaryThis PR migrates the five Key changes:
Confidence Score: 5/5
|
| Filename | Overview |
|---|---|
| ui/litellm-dashboard/src/components/DefaultUserSettings.tsx | Migrates five Button usages from Tremor to antd with correct prop mappings (size="small", danger, icon as JSX element, type="primary"). No functional logic changed. |
Flowchart
%%{init: {'theme': 'neutral'}}%%
flowchart TD
A[DefaultUserSettings] --> B{isEditing?}
B -- No --> C["Button type='primary'\nEdit Settings"]
B -- Yes --> D["Button default\nCancel"]
B -- Yes --> E["Button type='primary' loading={saving}\nSave Changes"]
A --> F[renderTeamsEditor]
F --> G["Button size='small' danger\nicon=<DeleteOutlined />\nRemove"]
F --> H["Button default\nicon=<PlusOutlined />\nAdd Team"]
style C fill:#1677ff,color:#fff
style E fill:#1677ff,color:#fff
style G fill:#ff4d4f,color:#fff
Last reviewed commit: 5befc02
Type
🧹 Refactoring
Changes
size="sm"→size="small",variant="secondary"→ default, default →type="primary",icon={Component}→icon={<Component />}