Fix labeller highlight when selected on bottom bar (#10716)

This commit is contained in:
heikadog
2026-06-04 06:28:40 -04:00
committed by GitHub
parent 9f200aab05
commit 49f8e5031f
3 changed files with 19 additions and 4 deletions
+3 -2
View File
@@ -144,6 +144,7 @@ export function BottomBar({navigation}: BottomTabBarProps) {
const [demoMode] = useDemoMode()
const {isActive: live} = useActorStatus(profile)
const isLabeler = profile?.associated?.labeler
return (
<>
@@ -276,9 +277,9 @@ export function BottomBar({navigation}: BottomTabBarProps) {
<View
style={[
styles.ctrlIcon,
styles.profileIcon,
isLabeler ? styles.profileIconSquare : styles.profileIcon,
isAtMyProfile && [
styles.onProfile,
isLabeler ? styles.onProfileSquare : styles.onProfile,
{
borderColor: t.atoms.text.color,
borderWidth: live ? 0 : 1,
@@ -67,9 +67,18 @@ export const styles = StyleSheet.create({
borderWidth: 1,
borderColor: 'transparent',
},
profileIconSquare: {
borderRadius: 3,
borderWidth: 1,
borderColor: 'transparent',
},
messagesIcon: {},
onProfile: {
borderWidth: 1,
borderRadius: 100,
},
onProfileSquare: {
borderWidth: 1,
borderRadius: 3,
},
})
+7 -2
View File
@@ -65,6 +65,7 @@ export function BottomBarWeb() {
const unreadMessageCount = useUnreadMessageCount()
const notificationCountStr = useUnreadNotifications()
const aa = useAgeAssurance()
const isLabeler = profile?.associated?.labeler
const showSignIn = useCallback(() => {
closeAllActiveElements()
@@ -186,9 +187,13 @@ export function BottomBarWeb() {
<View
style={[
styles.ctrlIcon,
styles.profileIcon,
isLabeler
? styles.profileIconSquare
: styles.profileIcon,
isActive && [
styles.onProfile,
isLabeler
? styles.onProfileSquare
: styles.onProfile,
{borderColor: t.atoms.text.color},
],
]}>