Remove FontAwesome (#10528)

Co-authored-by: Eric Bailey <git@esb.lol>
This commit is contained in:
Samuel Newman
2026-05-26 00:29:46 +03:00
committed by GitHub
parent f5dcce1718
commit 98cdeef5b2
19 changed files with 469 additions and 844 deletions
+21 -7
View File
@@ -5,13 +5,13 @@ import {
Pressable,
type StyleProp,
StyleSheet,
Text as RNText,
View,
type ViewStyle,
} from 'react-native'
import Svg, {Circle, Path, Rect} from 'react-native-svg'
import {Image as ExpoImage} from 'expo-image'
import {type ModerationUI} from '@atproto/api'
import {FontAwesomeIcon} from '@fortawesome/react-native-fontawesome'
import {msg} from '@lingui/core/macro'
import {useLingui} from '@lingui/react'
import {Trans} from '@lingui/react/macro'
@@ -270,13 +270,27 @@ let UserAvatar = ({
a.right_0,
a.bottom_0,
a.rounded_full,
{backgroundColor: t.palette.white},
{width: 16, height: 16},
a.align_center,
a.justify_center,
{backgroundColor: t.palette.pink},
{transform: [{scale: size / 42}]},
]}>
<FontAwesomeIcon
icon="exclamation-circle"
style={{color: t.palette.negative_400}}
size={Math.floor(size / 3)}
/>
<RNText
style={[
a.text_sm,
a.font_bold,
a.text_center,
{
color: t.palette.white,
includeFontPadding: false,
textAlignVertical: 'center',
},
]}
minimumFontScale={1}
maxFontSizeMultiplier={1}>
!
</RNText>
</View>
)
}, [moderation?.alert, size, t])