Fix backgrounds

zio/stable
Paul Frazee 2023-03-17 18:11:57 -05:00
parent 025681c2f2
commit 8364e1a081
2 changed files with 12 additions and 1 deletions

View File

@ -28,6 +28,7 @@ export const SuggestedFollows = ({
handle={item.handle} handle={item.handle}
displayName={item.displayName} displayName={item.displayName}
avatar={item.avatar} avatar={item.avatar}
noBg
noBorder noBorder
description="" description=""
followers={ followers={

View File

@ -16,6 +16,7 @@ export function ProfileCard({
avatar, avatar,
description, description,
isFollowedBy, isFollowedBy,
noBg,
noBorder, noBorder,
followers, followers,
renderButton, renderButton,
@ -25,6 +26,7 @@ export function ProfileCard({
avatar?: string avatar?: string
description?: string description?: string
isFollowedBy?: boolean isFollowedBy?: boolean
noBg?: boolean
noBorder?: boolean noBorder?: boolean
followers?: AppBskyActorProfile.View[] | undefined followers?: AppBskyActorProfile.View[] | undefined
renderButton?: () => JSX.Element renderButton?: () => JSX.Element
@ -32,7 +34,12 @@ export function ProfileCard({
const pal = usePalette('default') const pal = usePalette('default')
return ( return (
<Link <Link
style={[styles.outer, pal.border, noBorder && styles.outerNoBorder]} style={[
styles.outer,
pal.border,
noBorder && styles.outerNoBorder,
!noBg && pal.view,
]}
href={`/profile/${handle}`} href={`/profile/${handle}`}
title={handle} title={handle}
noFeedback noFeedback
@ -103,6 +110,7 @@ export const ProfileCardWithFollowBtn = observer(
avatar, avatar,
description, description,
isFollowedBy, isFollowedBy,
noBg,
noBorder, noBorder,
followers, followers,
}: { }: {
@ -113,6 +121,7 @@ export const ProfileCardWithFollowBtn = observer(
avatar?: string avatar?: string
description?: string description?: string
isFollowedBy?: boolean isFollowedBy?: boolean
noBg?: boolean
noBorder?: boolean noBorder?: boolean
followers?: AppBskyActorProfile.View[] | undefined followers?: AppBskyActorProfile.View[] | undefined
}) => { }) => {
@ -126,6 +135,7 @@ export const ProfileCardWithFollowBtn = observer(
avatar={avatar} avatar={avatar}
description={description} description={description}
isFollowedBy={isFollowedBy} isFollowedBy={isFollowedBy}
noBg={noBg}
noBorder={noBorder} noBorder={noBorder}
followers={followers} followers={followers}
renderButton={ renderButton={