From bf143681ff5390991ad9c566cb898d6f373af4a5 Mon Sep 17 00:00:00 2001 From: pavel <14926950+prichodko@users.noreply.github.com> Date: Wed, 16 Oct 2024 10:55:24 +0200 Subject: [PATCH] add `type="account"` to `` (#619) * u * Create lemon-houses-develop.md --- .changeset/lemon-houses-develop.md | 5 ++++ .../src/context-tag/context-tag.stories.tsx | 1 + .../src/context-tag/context-tag.tsx | 30 +++++++++++++++++-- 3 files changed, 34 insertions(+), 2 deletions(-) create mode 100644 .changeset/lemon-houses-develop.md diff --git a/.changeset/lemon-houses-develop.md b/.changeset/lemon-houses-develop.md new file mode 100644 index 00000000..ab373371 --- /dev/null +++ b/.changeset/lemon-houses-develop.md @@ -0,0 +1,5 @@ +--- +"@status-im/components": patch +--- + +add `type="account"` to `` diff --git a/packages/components/src/context-tag/context-tag.stories.tsx b/packages/components/src/context-tag/context-tag.stories.tsx index 7455b48b..cc0e7a07 100644 --- a/packages/components/src/context-tag/context-tag.stories.tsx +++ b/packages/components/src/context-tag/context-tag.stories.tsx @@ -45,6 +45,7 @@ const ContextTagVariant = (props: Props) => { /> } /> + ) => { ) }) + .with({ type: 'account' }, ({ label, emoji }) => { + return ( +
+ + '28' as const) + .otherwise(() => '20' as const)} + name={label} + emoji={emoji} + /> + + {label} +
+ ) + }) .with({ type: 'icon' }, ({ icon, label }) => { return (