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>
|
||||
);
|
||||
|
||||
@@ -121,8 +121,8 @@ export function NotificationsPopover(params: {
|
||||
return (
|
||||
<Popover modal open={open} onOpenChange={setOpen}>
|
||||
<PopoverTrigger asChild>
|
||||
<Button className={'relative px-4 py-2 h-10 border-1 mr-0'} variant={'ghost'}>
|
||||
<Bell className={'h-4 w-4'} />
|
||||
<Button className={'relative px-4 py-2 h-10 border-1 mr-0'} variant="ghost">
|
||||
<Bell className={'size-4'} />
|
||||
|
||||
<span
|
||||
className={cn(
|
||||
|
||||
Reference in New Issue
Block a user