Shared: Selector: Added original icon size at TSelectorItemLogo

This commit is contained in:
Ilya Oleshko 2024-05-03 14:48:19 +03:00
parent 16350b4d50
commit 6fef4648b9
2 changed files with 14 additions and 10 deletions

View File

@ -391,24 +391,27 @@ export type FooterProps = TSelectorFooterSubmitButton &
type TSelectorItemLogo = type TSelectorItemLogo =
| { | {
color?: undefined;
icon?: undefined;
avatar: string; avatar: string;
role?: AvatarRole; color?: undefined;
hasAvatar?: boolean; hasAvatar?: boolean;
icon?: undefined;
iconOriginal?: string;
role?: AvatarRole;
} }
| { | {
hasAvatar?: undefined;
color: string;
icon?: undefined;
avatar?: undefined; avatar?: undefined;
color: string;
hasAvatar?: undefined;
icon?: undefined;
iconOriginal?: string;
role?: undefined; role?: undefined;
} }
| { | {
hasAvatar?: undefined;
color?: undefined;
icon: string;
avatar?: undefined; avatar?: undefined;
color?: undefined;
hasAvatar?: undefined;
icon: string;
iconOriginal: string;
role?: undefined; role?: undefined;
}; };

View File

@ -31,9 +31,10 @@ export const convertToItems = (folders: TRoom[]) => {
const { id, title, roomType, logo, shared } = folder; const { id, title, roomType, logo, shared } = folder;
const icon = logo.medium; const icon = logo.medium;
const iconOriginal = logo.original;
const color = logo.color; const color = logo.color;
return { id, label: title, icon, color, roomType, shared }; return { id, label: title, icon, iconOriginal, color, roomType, shared };
}); });
return items; return items;