This repository was archived by the owner on Feb 13, 2025. It is now read-only.
File tree 3 files changed +2
-16
lines changed
3 files changed +2
-16
lines changed Original file line number Diff line number Diff line change 1
1
import { AudioPlayer , VideoPlayer } from '@/client'
2
2
import { Flex , Stack , Typography } from '@/design-system'
3
- import { getChannelWithId , getItemPage } from '@/gql'
3
+ import { getChannelWithId } from '@/gql'
4
4
import {
5
5
type MediaAssetObject ,
6
6
ipfsUrlToCid ,
@@ -49,10 +49,6 @@ export default async function ItemPage({
49
49
const reversedIndex = totalItems - Number ( params . index )
50
50
const itemToRender = channel ?. adds ?. items ?. [ reversedIndex ]
51
51
52
- const { itemPage } = await getItemPage ( {
53
- id : `${ channel ?. id } /${ itemToRender ?. itemId } ` ,
54
- } )
55
-
56
52
const itemMetadata = await kv . get < Pick < MediaAssetObject , 'value' > [ 'value' ] > (
57
53
itemToRender ?. item . uri as string ,
58
54
)
@@ -128,7 +124,7 @@ export default async function ItemPage({
128
124
< div className = "md:w-[22%]" >
129
125
< ItemSidebar
130
126
// @ts -ignore
131
- itemContext = { itemPage }
127
+ itemContext = { itemToRender }
132
128
itemMetadata = { itemMetadata }
133
129
// @ts -ignore
134
130
channel = { channel }
Load Diff This file was deleted.
Original file line number Diff line number Diff line change @@ -4,7 +4,6 @@ export * from './getAllItems'
4
4
export * from './getAllUsers'
5
5
export * from './getChannelsItemsWithUser'
6
6
export * from './getChannelWithId'
7
- export * from './getItemPage'
8
7
export * from './getItemWithId'
9
8
export * from './getTxnHash'
10
9
export * from './getUserId'
You can’t perform that action at this time.
0 commit comments