11import { FC } from 'react'
2+ import { useTranslation } from 'react-i18next'
23import Box from '@mui/material/Box'
34import { useScreenSize } from '../../hooks/useScreensize'
45import { NUMBER_OF_ITEMS_ON_SEPARATE_PAGE } from '../../config'
56import { updatesContainerId } from '../../utils/tabAnchors'
67import { LinkableCardLayout } from '../../components/LinkableCardLayout'
78import { RuntimeTransactions } from '../../components/Transactions'
89import { RuntimeTransactionTypeFilter } from '../../components/Transactions/RuntimeTransactionTypeFilter'
10+ import { getRuntimeRoflUpdatesMethodOptions } from '../..//components/RuntimeTransactionMethod'
911import { RoflAppDetailsContext , useRoflAppUpdates } from './hooks'
1012
1113export const RoflAppUpdatesCard : FC < RoflAppDetailsContext > = context => {
14+ const { t } = useTranslation ( )
1215 const { method, setMethod, scope } = context
13-
1416 const { isMobile } = useScreenSize ( )
17+ const customOptions = getRuntimeRoflUpdatesMethodOptions ( t )
1518
1619 return (
1720 < LinkableCardLayout
@@ -24,13 +27,24 @@ export const RoflAppUpdatesCard: FC<RoflAppDetailsContext> = context => {
2427 } }
2528 >
2629 { ! isMobile && (
27- < RuntimeTransactionTypeFilter layer = { scope . layer } value = { method } setValue = { setMethod } />
30+ < RuntimeTransactionTypeFilter
31+ layer = { scope . layer }
32+ value = { method }
33+ setValue = { setMethod }
34+ customOptions = { customOptions }
35+ />
2836 ) }
2937 </ Box >
3038 }
3139 >
3240 { isMobile && (
33- < RuntimeTransactionTypeFilter layer = { scope . layer } value = { method } setValue = { setMethod } expand />
41+ < RuntimeTransactionTypeFilter
42+ layer = { scope . layer }
43+ value = { method }
44+ setValue = { setMethod }
45+ expand
46+ customOptions = { customOptions }
47+ />
3448 ) }
3549 < RoflAppUpdates { ...context } />
3650 </ LinkableCardLayout >
0 commit comments