B2B-30: clean code

This commit is contained in:
devmc-ee
2025-07-02 18:22:42 +03:00
parent c4eaaca161
commit 27e9053a99
4 changed files with 7 additions and 7 deletions

View File

@@ -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>
);

View File

@@ -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(

View File

@@ -18,7 +18,7 @@ type ProfileAvatarProps = (SessionProps | TextProps) & {
export function ProfileAvatar(props: ProfileAvatarProps) {
const avatarClassName = cn(
props.className,
'mx-auto h-6 w-6 group-focus:ring-2',
'mx-auto size-6 group-focus:ring-2',
);
if ('text' in props) {