Skip to content

Commit

Permalink
(Audio): add audio
Browse files Browse the repository at this point in the history
  • Loading branch information
wcordelo committed Mar 16, 2024
1 parent baa946d commit d2288da
Show file tree
Hide file tree
Showing 3 changed files with 19 additions and 10 deletions.
12 changes: 3 additions & 9 deletions apps/web/src/components/Profile/CoverLinks.tsx
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { STATIC_ASSETS } from '@dragverse/constants'
import { STATIC_ASSETS, TWITTER_ICON_URL } from '@dragverse/constants'
import { getValueFromKeyInAttributes, imageCdn } from '@dragverse/generic'
import type { ProfileMetadata } from '@dragverse/lens'
import { GlobeOutline, LocationOutline } from '@dragverse/ui'
Expand Down Expand Up @@ -89,10 +89,7 @@ const CoverLinks = ({ metadata }: { metadata: ProfileMetadata }) => {
>
{resolvedTheme === 'dark' ? (
<img
src={imageCdn(
`${STATIC_ASSETS}/images/social/x-white.png`,
'AVATAR'
)}
src={imageCdn(`${TWITTER_ICON_URL}`, 'AVATAR')}
className="size-3.5"
height={16}
width={16}
Expand All @@ -101,10 +98,7 @@ const CoverLinks = ({ metadata }: { metadata: ProfileMetadata }) => {
/>
) : (
<img
src={imageCdn(
`${STATIC_ASSETS}/images/social/x-black.png`,
'AVATAR'
)}
src={imageCdn(`${TWITTER_ICON_URL}`, 'AVATAR')}
className="size-3.5"
height={16}
width={16}
Expand Down
15 changes: 15 additions & 0 deletions apps/web/src/components/Profile/Tabs/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ import { useRouter } from 'next/router'
import type { FC } from 'react'

import OtherProfiles from './OtherProfiles'
import ProfileAudios from './ProfileAudios'
import ProfileBytes from './ProfileBytes'
import ProfileVideos from './ProfileVideos'

Expand Down Expand Up @@ -59,6 +60,16 @@ const ProfileTabs: FC<Props> = ({ profile }) => {
>
Channels
</TabsTrigger>
<TabsTrigger
className="rounded-t-lg border-black px-4 py-1.5 text-sm font-medium data-[state=active]:border-b data-[state=active]:bg-gray-100 dark:border-white data-[state=active]:dark:bg-gray-800"
onClick={() => {
handleTabChange('audio')
Tower.track(EVENTS.PROFILE.CLICK_PROFILE_AUDIOS)
}}
value="audio"
>
Audio
</TabsTrigger>
</TabsList>

<div className="pt-3">
Expand All @@ -73,6 +84,10 @@ const ProfileTabs: FC<Props> = ({ profile }) => {
<TabsContent value="channels">
<OtherProfiles currentProfile={profile} />
</TabsContent>

<TabsContent value="audio">
<ProfileAudios profile={profile} />
</TabsContent>
</div>
</Tabs>
</div>
Expand Down
2 changes: 1 addition & 1 deletion packages/constants/general.ts
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ export const TAPE_EMBED_URL = IS_MAINNET
: 'https://embed-testnet.dragverse.app'
export const TAPE_API_URL = IS_PRODUCTION
? 'https://api.tape.xyz'
: 'http://localhost:4000'
: 'https://api.tape.xyz'

// tape addresses
export const TAPE_SIGNUP_PROXY_ADDRESS = IS_MAINNET
Expand Down

0 comments on commit d2288da

Please sign in to comment.