Skip to content

Commit

Permalink
update ContextTag (#468)
Browse files Browse the repository at this point in the history
* u Avatar

* u Context Tag

* add changeset

* revert type

* Revert "revert type"

This reverts commit 1d099cf.

* add bigger 24

* c

* f

* f textSize
  • Loading branch information
felicio authored Sep 11, 2023
1 parent 5dc7997 commit 7c96dec
Show file tree
Hide file tree
Showing 5 changed files with 750 additions and 86 deletions.
5 changes: 5 additions & 0 deletions .changeset/few-coins-notice.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
'@status-im/components': patch
---

update Context Tag
7 changes: 4 additions & 3 deletions packages/components/src/avatar/avatar.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -51,23 +51,23 @@ type ChannelAvatarProps = {

type CommunityAvatarProps = {
type: 'community'
size: 80 | 32 | 28 | 24 | 20
size: 80 | 32 | 28 | 24 | 20 | 16
name: string
src?: string
backgroundColor?: ColorTokens
}

type AccountAvatarProps = {
type: 'account'
size: 80 | 48 | 32 | 28 | 24 | 20
size: 80 | 48 | 32 | 28 | 24 | 20 | 16
name: string
src?: string
backgroundColor?: ColorTokens
}

type IconAvatarProps = {
type: 'icon'
size: 48 | 32 | 28 | 24 | 20
size: 48 | 32 | 28 | 24 | 20 | 16
icon: React.ReactElement
backgroundColor?: ColorTokens
color?: ColorTokens
Expand Down Expand Up @@ -102,6 +102,7 @@ const accountRadiusSizes: Record<AccountAvatarProps['size'], RadiusTokens> = {
'28': '$8',
'24': '$8',
'20': '$6',
'16': '$6',
}

const channelEmojiSizes: Record<ChannelAvatarProps['size'], TextProps['size']> =
Expand Down
Loading

2 comments on commit 7c96dec

@vercel
Copy link

@vercel vercel bot commented on 7c96dec Sep 11, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Successfully deployed to the following URLs:

status-web – ./apps/web

status-web-git-main-status-im-web.vercel.app
status-web.vercel.app
status-web-status-im-web.vercel.app

@vercel
Copy link

@vercel vercel bot commented on 7c96dec Sep 11, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Successfully deployed to the following URLs:

status-components – ./packages/components

status-components-git-main-status-im-web.vercel.app
status-components.vercel.app
status-components-status-im-web.vercel.app

Please sign in to comment.