Skip to content

Commit

Permalink
mv chatAvatarSizeMap
Browse files Browse the repository at this point in the history
  • Loading branch information
TheSonOfThomp committed May 3, 2024
1 parent 1f3dd28 commit 9eaafd2
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 6 deletions.
6 changes: 5 additions & 1 deletion chat/avatar/src/Avatar/Avatar.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -7,10 +7,14 @@ import { breakpoints } from '@leafygreen-ui/tokens';
import {
type ChatAvatarProps,
ChatAvatarSize,
chatAvatarSizeMap,
ChatAvatarVariant,
} from './Avatar.types';

export const chatAvatarSizeMap: Record<ChatAvatarSize, number> = {
[ChatAvatarSize.Default]: 52,
[ChatAvatarSize.Small]: 40,
};

export const variantToAvatarFormatMap: Record<ChatAvatarVariant, Format> = {
[ChatAvatarVariant.Default]: Format.Icon,
[ChatAvatarVariant.Mongo]: Format.MongoDB,
Expand Down
5 changes: 0 additions & 5 deletions chat/avatar/src/Avatar/Avatar.types.ts
Original file line number Diff line number Diff line change
Expand Up @@ -26,11 +26,6 @@ export const ChatAvatarSize = {
export type ChatAvatarSize =
(typeof ChatAvatarSize)[keyof typeof ChatAvatarSize];

export const chatAvatarSizeMap: Record<ChatAvatarSize, number> = {
[ChatAvatarSize.Default]: 52,
[ChatAvatarSize.Small]: 40,
};

export interface ChatAvatarProps extends DarkModeProps {
/**
* If provided, overrides the size prop to a customizable number (in px)
Expand Down

0 comments on commit 9eaafd2

Please sign in to comment.