parent
6791da0fc8
commit
474304d284
|
@ -19,7 +19,6 @@ import { useIsIframe } from 'web/hooks/use-is-iframe'
|
||||||
import { trackCallback } from 'web/lib/service/analytics'
|
import { trackCallback } from 'web/lib/service/analytics'
|
||||||
import { useUnseenPreferredNotifications } from 'web/hooks/use-notifications'
|
import { useUnseenPreferredNotifications } from 'web/hooks/use-notifications'
|
||||||
import { PrivateUser } from 'common/user'
|
import { PrivateUser } from 'common/user'
|
||||||
import { Row } from 'web/components/layout/row'
|
|
||||||
|
|
||||||
function getNavigation() {
|
function getNavigation() {
|
||||||
return [
|
return [
|
||||||
|
@ -70,20 +69,13 @@ export function BottomNavBar() {
|
||||||
trackingEventName: 'profile',
|
trackingEventName: 'profile',
|
||||||
href: `/${user.username}?tab=bets`,
|
href: `/${user.username}?tab=bets`,
|
||||||
icon: () => (
|
icon: () => (
|
||||||
<Row className={'flex-wrap items-center justify-center'}>
|
<Avatar
|
||||||
<Avatar
|
className="mx-auto my-1"
|
||||||
className="my-1"
|
size="xs"
|
||||||
size="xs"
|
username={user.username}
|
||||||
username={user.username}
|
avatarUrl={user.avatarUrl}
|
||||||
avatarUrl={user.avatarUrl}
|
noLink
|
||||||
noLink
|
/>
|
||||||
/>
|
|
||||||
{user.currentBettingStreak && user.currentBettingStreak > 0 && (
|
|
||||||
<div className={'absolute ml-14 mb-3 text-xs'}>
|
|
||||||
<span>🔥{user.currentBettingStreak}</span>
|
|
||||||
</div>
|
|
||||||
)}
|
|
||||||
</Row>
|
|
||||||
),
|
),
|
||||||
}}
|
}}
|
||||||
/>
|
/>
|
||||||
|
|
|
@ -4,7 +4,6 @@ import { User } from 'web/lib/firebase/users'
|
||||||
import { formatMoney } from 'common/util/format'
|
import { formatMoney } from 'common/util/format'
|
||||||
import { Avatar } from '../avatar'
|
import { Avatar } from '../avatar'
|
||||||
import { trackCallback } from 'web/lib/service/analytics'
|
import { trackCallback } from 'web/lib/service/analytics'
|
||||||
import { Row } from 'web/components/layout/row'
|
|
||||||
|
|
||||||
export function ProfileSummary(props: { user: User }) {
|
export function ProfileSummary(props: { user: User }) {
|
||||||
const { user } = props
|
const { user } = props
|
||||||
|
@ -18,14 +17,7 @@ export function ProfileSummary(props: { user: User }) {
|
||||||
|
|
||||||
<div className="truncate">
|
<div className="truncate">
|
||||||
<div>{user.name}</div>
|
<div>{user.name}</div>
|
||||||
<Row className="gap-1 text-sm">
|
<div className="text-sm">{formatMoney(Math.floor(user.balance))}</div>
|
||||||
{formatMoney(Math.floor(user.balance))}
|
|
||||||
{user.currentBettingStreak && user.currentBettingStreak > 0 && (
|
|
||||||
<div className={'mt-0.5 text-xs'}>
|
|
||||||
<span>🔥{user.currentBettingStreak}</span>
|
|
||||||
</div>
|
|
||||||
)}
|
|
||||||
</Row>
|
|
||||||
</div>
|
</div>
|
||||||
</a>
|
</a>
|
||||||
</Link>
|
</Link>
|
||||||
|
|
|
@ -124,7 +124,7 @@ export function UserPage(props: { user: User }) {
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
{/* Top right buttons (e.g. edit, follow) */}
|
{/* Top right buttons (e.g. edit, follow) */}
|
||||||
<div className="absolute right-0 top-0 mt-1 mr-4">
|
<div className="absolute right-0 top-0 mt-2 mr-4">
|
||||||
{!isCurrentUser && <UserFollowButton userId={user.id} />}
|
{!isCurrentUser && <UserFollowButton userId={user.id} />}
|
||||||
{isCurrentUser && (
|
{isCurrentUser && (
|
||||||
<SiteLink className="sm:btn-md btn-sm btn" href="/profile">
|
<SiteLink className="sm:btn-md btn-sm btn" href="/profile">
|
||||||
|
|
Loading…
Reference in New Issue
Block a user