Skip to content
This repository was archived by the owner on Feb 13, 2025. It is now read-only.

Commit 174b450

Browse files
authored
Merge pull request #481 from 1ifeworld/jawn/issue_393
Jawn/issue 393
2 parents b336a4d + 8d8205b commit 174b450

File tree

3 files changed

+2
-16
lines changed

3 files changed

+2
-16
lines changed

apps/site/app/channel/[id]/[index]/page.tsx

+2-6
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
import { AudioPlayer, VideoPlayer } from '@/client'
22
import { Flex, Stack, Typography } from '@/design-system'
3-
import { getChannelWithId, getItemPage } from '@/gql'
3+
import { getChannelWithId } from '@/gql'
44
import {
55
type MediaAssetObject,
66
ipfsUrlToCid,
@@ -49,10 +49,6 @@ export default async function ItemPage({
4949
const reversedIndex = totalItems - Number(params.index)
5050
const itemToRender = channel?.adds?.items?.[reversedIndex]
5151

52-
const { itemPage } = await getItemPage({
53-
id: `${channel?.id}/${itemToRender?.itemId}`,
54-
})
55-
5652
const itemMetadata = await kv.get<Pick<MediaAssetObject, 'value'>['value']>(
5753
itemToRender?.item.uri as string,
5854
)
@@ -128,7 +124,7 @@ export default async function ItemPage({
128124
<div className="md:w-[22%]">
129125
<ItemSidebar
130126
// @ts-ignore
131-
itemContext={itemPage}
127+
itemContext={itemToRender}
132128
itemMetadata={itemMetadata}
133129
// @ts-ignore
134130
channel={channel}

apps/site/gql/requests/getItemPage.ts

-9
This file was deleted.

apps/site/gql/requests/index.ts

-1
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,6 @@ export * from './getAllItems'
44
export * from './getAllUsers'
55
export * from './getChannelsItemsWithUser'
66
export * from './getChannelWithId'
7-
export * from './getItemPage'
87
export * from './getItemWithId'
98
export * from './getTxnHash'
109
export * from './getUserId'

0 commit comments

Comments
 (0)