diff --git a/web/components/user-page.tsx b/web/components/user-page.tsx index faa810e1..bcbb395e 100644 --- a/web/components/user-page.tsx +++ b/web/components/user-page.tsx @@ -35,16 +35,13 @@ import { hasCompletedStreakToday, } from 'web/components/profile/betting-streak-modal' import { LoansModal } from './profile/loans-modal' -import { useIsMobile } from 'web/hooks/use-is-mobile' export function UserPage(props: { user: User }) { const { user } = props const router = useRouter() const currentUser = useUser() const isCurrentUser = user.id === currentUser?.id - // const bannerUrl = user.bannerUrl ?? defaultBannerUrl(user.id) const [showConfetti, setShowConfetti] = useState(false) - const isMobile = useIsMobile() useEffect(() => { const claimedMana = router.query['claimed-mana'] === 'yes' @@ -113,17 +110,18 @@ export function UserPage(props: { user: User }) { )} {!isCurrentUser && } - {!isMobile && ( - - )} + - {isMobile && } + {user.bio && ( <> @@ -197,6 +195,7 @@ export function UserPage(props: { user: User }) { tabIcon: , content: ( <> + @@ -207,16 +206,22 @@ export function UserPage(props: { user: User }) { title: 'Markets', tabIcon: , content: ( - + <> + + + ), }, { title: 'Comments', tabIcon: , content: ( - - - + <> + + + + + ), }, ]} diff --git a/web/pages/profile.tsx b/web/pages/profile.tsx index 2c095db6..e8f6ab83 100644 --- a/web/pages/profile.tsx +++ b/web/pages/profile.tsx @@ -176,27 +176,6 @@ export default function ProfilePage(props: { onBlur={updateUsername} /> - - {/* TODO: Allow users with M$ 2000 of assets to set custom banners */} - {/* */} - -
- {( [ ['bio', 'Bio'],