mirror of
https://github.com/mattermost/mattermost.git
synced 2025-02-25 18:55:24 -06:00
fixed type issue with avatar component
This commit is contained in:
parent
700f172f0d
commit
5ad1092ba4
@ -11,7 +11,7 @@ import BotDefaultIcon from 'images/bot_default_icon.png';
|
||||
|
||||
import './avatar.scss';
|
||||
|
||||
export type TAvatarSizeToken = 'xxs' | 'xs' | 'sm' | 'md' | 'lg' | 'xl' | 'xl-custom-DM' | 'xl-custom-GM' | 'xxl';
|
||||
export type TAvatarSizeToken = 'xxs' | 'xs' | 'sm' | 'md' | 'lg' | 'xl' | 'xxl' | 'xxxl' | 'xxxxl';
|
||||
|
||||
export const getAvatarWidth = (size: TAvatarSizeToken) => {
|
||||
switch (size) {
|
||||
|
Loading…
Reference in New Issue
Block a user