11import { FC } from 'react'
22import { useTranslation } from 'react-i18next'
3- import Typography from '@mui/material/Typography'
43import { RoflInstance } from '../../../oasis-nexus/api'
54import { SearchScope } from '../../../types/searchScope'
65import { COLORS } from '../../../styles/theme/colors'
7- import { useScreenSize } from '../../hooks/useScreensize'
8- import { trimLongString } from '../../utils/trimLongString'
96import { Table , TableCellAlign , TableColProps } from '../../components/Table'
107import { TablePaginationProps } from '../../components/Table/TablePagination'
118import { RoflAppInstanceStatusBadge } from '../../components/Rofl/RoflAppInstanceStatusBadge'
129import { RoflAppInstanceLink } from '../../components/Rofl/RoflAppInstanceLink'
10+ import { TableCellNode } from '../../components/TableCellNode'
11+ import { TableHeaderNode } from '../../components/TableHeaderNode'
1312
1413type InstancesListProps = {
1514 currentEpoch : number | undefined
@@ -31,11 +30,10 @@ export const InstancesList: FC<InstancesListProps> = ({
3130 scope,
3231} ) => {
3332 const { t } = useTranslation ( )
34- const { isTablet } = useScreenSize ( )
3533
3634 const tableColumns : TableColProps [ ] = [
3735 { key : 'rak' , content : t ( 'rofl.rakAbbreviation' ) } ,
38- { key : 'node' , content : t ( 'rofl.nodeId' ) } ,
36+ { key : 'node' , content : < TableHeaderNode /> } ,
3937 { key : 'expirationEpoch' , content : t ( 'rofl.expirationEpoch' ) , align : TableCellAlign . Right } ,
4038 { key : 'expirationStatus' , content : t ( 'common.status' ) , align : TableCellAlign . Right } ,
4139 ]
@@ -54,11 +52,7 @@ export const InstancesList: FC<InstancesListProps> = ({
5452 } ,
5553 {
5654 key : 'node' ,
57- content : (
58- < Typography variant = "mono" >
59- { isTablet ? trimLongString ( instance . endorsing_node_id ) : instance . endorsing_node_id }
60- </ Typography >
61- ) ,
55+ content : < TableCellNode id = { instance . endorsing_node_id } scope = { scope } /> ,
6256 } ,
6357 {
6458 key : 'expirationEpoch' ,
0 commit comments