@@ -16,11 +16,11 @@ import {CopiableText} from '../../../common/CopiableText'
16
16
import { Divider } from '../../../common/Divider'
17
17
import { useAddressType } from '../../../common/hooks/useAddressType'
18
18
import { useStrings } from '../../../common/hooks/useStrings'
19
- import { useReviewTx } from '../../../common/ReviewTxProvider'
19
+ import { ReviewTxState } from '../../../common/ReviewTxProvider'
20
20
import { TokenItem } from '../../../common/TokenItem'
21
21
import { FormattedOutputs , FormattedTx } from '../../../common/types'
22
22
23
- export const OverviewTab = ( { tx} : { tx : FormattedTx } ) => {
23
+ export const OverviewTab = ( { tx, operations } : { tx : FormattedTx ; operations : ReviewTxState [ 'operations' ] } ) => {
24
24
const { styles} = useStyles ( )
25
25
26
26
const notOwnedOutputs = React . useMemo ( ( ) => tx . outputs . filter ( ( output ) => ! output . ownAddress ) , [ tx . outputs ] )
@@ -36,7 +36,7 @@ export const OverviewTab = ({tx}: {tx: FormattedTx}) => {
36
36
37
37
< SenderSection tx = { tx } notOwnedOutputs = { notOwnedOutputs } ownedOutputs = { ownedOutputs } />
38
38
39
- < OperationsSection />
39
+ < OperationsSection operations = { operations } />
40
40
</ View >
41
41
)
42
42
}
@@ -186,9 +186,7 @@ const ReceiverSection = ({notOwnedOutputs}: {notOwnedOutputs: FormattedOutputs})
186
186
)
187
187
}
188
188
189
- const OperationsSection = ( ) => {
190
- const { operations} = useReviewTx ( )
191
-
189
+ const OperationsSection = ( { operations} : { operations : ReviewTxState [ 'operations' ] } ) => {
192
190
if ( operations === null || ( Array . isArray ( operations ) && operations . length === 0 ) ) return null
193
191
194
192
return (
0 commit comments