From 98064119e1dd675dcf950b932487617712c813ce Mon Sep 17 00:00:00 2001 From: Austin Chen Date: Sun, 23 Jan 2022 23:43:07 -0600 Subject: [PATCH] Remove unused UserCard --- web/components/user-page.tsx | 41 +----------------------------------- 1 file changed, 1 insertion(+), 40 deletions(-) diff --git a/web/components/user-page.tsx b/web/components/user-page.tsx index 4784c295..a5c225c7 100644 --- a/web/components/user-page.tsx +++ b/web/components/user-page.tsx @@ -1,9 +1,7 @@ import clsx from 'clsx' -import { firebaseLogout, User } from '../lib/firebase/users' +import { User } from '../lib/firebase/users' import { CreatorContractsList } from './contracts-list' import { Title } from './title' -import { Row } from './layout/row' -import { formatMoney } from '../lib/util/format' import { SEO } from './SEO' import { Page } from './page' import { SiteLink } from './site-link' @@ -24,41 +22,6 @@ export function UserLink(props: { ) } -function UserCard(props: { user: User; showPrivateInfo?: boolean }) { - const { user, showPrivateInfo } = props - return ( - -
- {user?.avatarUrl && ( - - )} -
-
-
{user.name}
- - {showPrivateInfo && ( - <> -

{formatMoney(user?.balance)}

-
- -
- - )} -
-
- ) -} - export function UserPage(props: { user: User; currentUser?: User }) { const { user, currentUser } = props @@ -74,8 +37,6 @@ export function UserPage(props: { user: User; currentUser?: User }) { url={`/@${user.username}`} /> - {/* */} - <CreatorContractsList creator={user} />