1
This commit is contained in:
@@ -23,6 +23,7 @@ const BackNavbar: React.FC<BackNavbarProps> = ({
|
||||
className = ''
|
||||
}) => {
|
||||
const userInfo = useUserInfo();
|
||||
|
||||
const { statusBarHeight, navBarHeight, totalHeight } = getNavbarHeight();
|
||||
|
||||
const handleBack = () => {
|
||||
@@ -39,7 +40,7 @@ const BackNavbar: React.FC<BackNavbarProps> = ({
|
||||
style={{
|
||||
paddingTop: `${statusBarHeight}px`,
|
||||
height: `${totalHeight}px`,
|
||||
backgroundColor: backgroundColor || "#ffffff"
|
||||
backgroundColor: backgroundColor || "#fafafa"
|
||||
}}
|
||||
>
|
||||
<View
|
||||
@@ -55,7 +56,7 @@ const BackNavbar: React.FC<BackNavbarProps> = ({
|
||||
{showAvatar && (
|
||||
<Image
|
||||
className="navbar-avatar"
|
||||
src={userInfo?.userInfo?.avatar_url}
|
||||
src={userInfo?.avatar_url || require('@/static/userInfo/default_avatar.svg')}
|
||||
mode="aspectFill"
|
||||
/>
|
||||
)}
|
||||
|
||||
Reference in New Issue
Block a user