File tree Expand file tree Collapse file tree 3 files changed +6
-6
lines changed
packages/plugins/packages/boundwitness/src/components/_shared/Payloads Expand file tree Collapse file tree 3 files changed +6
-6
lines changed Original file line number Diff line number Diff line change @@ -4,11 +4,12 @@ import type { PropertyGroupProps } from '@xyo-network/react-property'
44import { PropertyGroup } from '@xyo-network/react-property'
55import React from 'react'
66
7+ import type { ClickableFields } from './payloads-table/index.ts'
78import { BoundWitnessPayloadsTable } from './PayloadsTable.tsx'
89
910export type BoundWitnessPayloadsProps = PropertyGroupProps & {
1011 payload ?: BoundWitness
11- payloadTableProps ?: PayloadTableProps
12+ payloadTableProps ?: PayloadTableProps & { clickableFields ?: ClickableFields [ ] }
1213}
1314
1415export const BoundWitnessPayloads : React . FC < BoundWitnessPayloadsProps > = ( {
Original file line number Diff line number Diff line change @@ -6,11 +6,12 @@ import { TableEx } from '@xyo-network/react-table'
66import type { PropsWithChildren } from 'react'
77import React from 'react'
88
9+ import type { ClickableFields } from './payloads-table/index.ts'
910import { BoundWitnessFilteredPayloadTableBody , BoundWitnessPayloadTableHead } from './payloads-table/index.ts'
1011
1112export interface BoundWitnessPayloadTableProps extends PayloadTableProps {
1213 boundwitness ?: BoundWitness
13- clickableFields ?: ExtendEventNoun [ ]
14+ clickableFields ?: ClickableFields [ ]
1415 eventNoun ?: ExtendEventNoun
1516}
1617
Original file line number Diff line number Diff line change @@ -11,11 +11,9 @@ import { useTableHeight } from '@xyo-network/react-table'
1111import type { RefObject } from 'react'
1212import React , { useLayoutEffect } from 'react'
1313
14- type ClickableFields = 'hash' | 'schema'
14+ export type ClickableFields = 'hash' | 'schema'
1515
16- export interface BoundWitnessPayloadTableBodyProps <
17- TNoun extends ExtendEventNoun < string > = EventNoun ,
18- > extends PayloadTableBodyProps {
16+ export interface BoundWitnessPayloadTableBodyProps < TNoun extends ExtendEventNoun < string > = EventNoun > extends PayloadTableBodyProps {
1917 clickableFields ?: ClickableFields [ ]
2018 eventNoun ?: TNoun
2119 payloadHashes ?: string [ ]
You can’t perform that action at this time.
0 commit comments