Skip to content

Commit

Permalink
manifold wrapped
Browse files Browse the repository at this point in the history
  • Loading branch information
ingawei committed Dec 6, 2024
1 parent c5c0490 commit ffef58c
Showing 1 changed file with 16 additions and 1 deletion.
17 changes: 16 additions & 1 deletion web/pages/[username]/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ import Head from 'next/head'
import Link from 'next/link'
import { useRouter } from 'next/router'
import { useEffect, useState } from 'react'
import { FaCrown } from 'react-icons/fa6'
import { FaCrown, FaDivide } from 'react-icons/fa6'
import { UserBetsTable } from 'web/components/bet/user-bets-table'
import { FollowButton } from 'web/components/buttons/follow-button'
import { TextButton } from 'web/components/buttons/text-button'
Expand All @@ -34,6 +34,7 @@ import { Row } from 'web/components/layout/row'
import { Spacer } from 'web/components/layout/spacer'
import { QueryUncontrolledTabs, Tabs } from 'web/components/layout/tabs'
import { SendMessageButton } from 'web/components/messaging/send-message-button'
import { Banner } from 'web/components/nav/banner'
import { BalanceChangeTable } from 'web/components/portfolio/balance-change-table'
import { PortfolioSummary } from 'web/components/portfolio/portfolio-summary'
import { PortfolioValueSection } from 'web/components/portfolio/portfolio-value-section'
Expand Down Expand Up @@ -363,6 +364,20 @@ function UserProfile(props: {
</Row>
)}

{isCurrentUser && (
<Link
href={`${user.username}/wrapped2024`}
className="mx-4 my-2 rounded-lg bg-gradient-to-r from-blue-700 via-blue-300 to-blue-700 p-0.5 shadow-lg transition-all hover:shadow-xl"
>
<div className="bg-canvas-0 flex items-center justify-between rounded-lg px-4 py-3 transition-colors hover:bg-transparent hover:text-white">
<span className="flex items-center gap-2 font-medium">
Your Manifold wrapped is here!
</span>
<span className="text-ink-600 hover:text-white"></span>
</div>
</Link>
)}

<Col className="mx-4">
<QueryUncontrolledTabs
trackingName={'profile tabs'}
Expand Down

0 comments on commit ffef58c

Please sign in to comment.