fix: remove size prop in PlanBadge component because UpgradeBtn size … (#15544)

This commit is contained in:
NFish
2025-03-12 09:49:15 +08:00
committed by GitHub
parent 5d8b32a249
commit eb9b256ee8
3 changed files with 28 additions and 30 deletions

View File

@@ -71,7 +71,7 @@ const WorkplaceSelector = () => {
<div className='flex py-1 pl-3 pr-2 items-center gap-2 self-stretch hover:bg-state-base-hover rounded-lg' key={workspace.id} onClick={() => handleSwitchWorkspace(workspace.id)}>
<div className='flex items-center justify-center w-6 h-6 bg-[#EFF4FF] rounded-md text-xs font-medium text-primary-600'>{workspace.name[0].toLocaleUpperCase()}</div>
<div className='line-clamp-1 grow overflow-hidden text-text-secondary text-ellipsis system-md-regular cursor-pointer'>{workspace.name}</div>
<PlanBadge size='s' plan={workspace.plan as Plan} />
<PlanBadge plan={workspace.plan as Plan} />
</div>
))
}