B2B-30: clean code
This commit is contained in:
@@ -124,7 +124,7 @@ export function AccountSelector({
|
||||
condition={selected}
|
||||
fallback={
|
||||
<span
|
||||
className={cn('flex max-w-full items-center w-4 h-4', {
|
||||
className={cn('flex max-w-full items-center size-4', {
|
||||
'justify-center gap-x-0': collapsed,
|
||||
'gap-x-4': !collapsed,
|
||||
})}
|
||||
@@ -148,7 +148,7 @@ export function AccountSelector({
|
||||
'gap-x-4': !collapsed,
|
||||
})}
|
||||
>
|
||||
<Avatar className={'rounded-md h-6 w-6'}>
|
||||
<Avatar className={'rounded-md size-6'}>
|
||||
<AvatarImage src={account.image ?? undefined} />
|
||||
|
||||
<AvatarFallback
|
||||
@@ -297,7 +297,7 @@ export function AccountSelector({
|
||||
|
||||
function UserAvatar(props: { pictureUrl?: string }) {
|
||||
return (
|
||||
<Avatar className={'rounded-md h-6 w-6'}>
|
||||
<Avatar className={'rounded-md size-6'}>
|
||||
<AvatarImage src={props.pictureUrl} />
|
||||
</Avatar>
|
||||
);
|
||||
|
||||
Reference in New Issue
Block a user