diff options
author | Eric Bailey <git@esb.lol> | 2024-07-02 18:15:20 -0500 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-07-03 00:15:20 +0100 |
commit | 14c2d75d49c492e9625a6e7b139f2e8dbc66668f (patch) | |
tree | 154c60c485302f8dc66dbb2181d46067125f784e /src/components/ProfileHoverCard/index.web.tsx | |
parent | c13366176845d20775fd1d15d1a15bcfb160b39e (diff) | |
download | voidsky-14c2d75d49c492e9625a6e7b139f2e8dbc66668f.tar.zst |
Unify label pills (#4676)
* New label pills * Fix type errors, add default case * Remove negative margin, only works in some places * Fix alignment edge case * Add a bit of padding --------- Co-authored-by: Dan Abramov <dan.abramov@gmail.com>
Diffstat (limited to 'src/components/ProfileHoverCard/index.web.tsx')
-rw-r--r-- | src/components/ProfileHoverCard/index.web.tsx | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/src/components/ProfileHoverCard/index.web.tsx b/src/components/ProfileHoverCard/index.web.tsx index 4db9c4f8e..84b1d6d24 100644 --- a/src/components/ProfileHoverCard/index.web.tsx +++ b/src/components/ProfileHoverCard/index.web.tsx @@ -29,10 +29,10 @@ import { } from '#/components/KnownFollowers' import {InlineLinkText, Link} from '#/components/Link' import {Loader} from '#/components/Loader' +import * as Pills from '#/components/Pills' import {Portal} from '#/components/Portal' import {RichText} from '#/components/RichText' import {Text} from '#/components/Typography' -import {ProfileLabel} from '../moderation/ProfileHeaderAlerts' import {ProfileHoverCardProps} from './types' const floatingMiddlewares = [ @@ -476,8 +476,9 @@ function Inner({ {isBlockedUser && ( <View style={[a.flex_row, a.flex_wrap, a.gap_xs]}> {moderation.ui('profileView').alerts.map(cause => ( - <ProfileLabel + <Pills.Label key={getModerationCauseKey(cause)} + size="lg" cause={cause} disableDetailsDialog /> |