Skip to content

Commit

Permalink
Merge pull request #481 from 1ifeworld/jawn/issue_393
Browse files Browse the repository at this point in the history
Jawn/issue 393
  • Loading branch information
jawndiego authored Feb 18, 2024
2 parents b336a4d + 8d8205b commit 174b450
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 16 deletions.
8 changes: 2 additions & 6 deletions apps/site/app/channel/[id]/[index]/page.tsx
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import { AudioPlayer, VideoPlayer } from '@/client'
import { Flex, Stack, Typography } from '@/design-system'
import { getChannelWithId, getItemPage } from '@/gql'
import { getChannelWithId } from '@/gql'
import {
type MediaAssetObject,
ipfsUrlToCid,
Expand Down Expand Up @@ -49,10 +49,6 @@ export default async function ItemPage({
const reversedIndex = totalItems - Number(params.index)
const itemToRender = channel?.adds?.items?.[reversedIndex]

const { itemPage } = await getItemPage({
id: `${channel?.id}/${itemToRender?.itemId}`,
})

const itemMetadata = await kv.get<Pick<MediaAssetObject, 'value'>['value']>(
itemToRender?.item.uri as string,
)
Expand Down Expand Up @@ -128,7 +124,7 @@ export default async function ItemPage({
<div className="md:w-[22%]">
<ItemSidebar
// @ts-ignore
itemContext={itemPage}
itemContext={itemToRender}
itemMetadata={itemMetadata}
// @ts-ignore
channel={channel}
Expand Down
9 changes: 0 additions & 9 deletions apps/site/gql/requests/getItemPage.ts

This file was deleted.

1 change: 0 additions & 1 deletion apps/site/gql/requests/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@ export * from './getAllItems'
export * from './getAllUsers'
export * from './getChannelsItemsWithUser'
export * from './getChannelWithId'
export * from './getItemPage'
export * from './getItemWithId'
export * from './getTxnHash'
export * from './getUserId'
Expand Down

0 comments on commit 174b450

Please sign in to comment.