11import { FC } from 'react'
22import { useTranslation } from 'react-i18next'
33import { RoflApp } from '../../../oasis-nexus/api'
4- import { Table , TableCellAlign , TableColProps } from '..//Table'
4+ import { useScreenSize } from '../../hooks/useScreensize'
5+ import { Table , TableCellAlign , TableColProps } from '../Table'
56import { TablePaginationProps } from '../Table/TablePagination'
67import { TableHeaderAge } from '../TableHeaderAge'
78import { TableCellAge } from '../TableCellAge'
@@ -17,12 +18,18 @@ type RoflAppsListProps = {
1718
1819export const RoflAppsList : FC < RoflAppsListProps > = ( { isLoading, limit, pagination, apps } ) => {
1920 const { t } = useTranslation ( )
21+ const { isTablet } = useScreenSize ( )
22+
2023 const tableColumns : TableColProps [ ] = [
2124 { key : 'order' , content : '' } ,
2225 { key : 'name' , content : t ( 'common.name' ) } ,
2326 { key : 'status' , content : t ( 'common.status' ) } ,
2427 { key : 'id' , content : t ( 'rofl.appId' ) } ,
25- { key : 'instances' , content : t ( 'rofl.instances' ) , align : TableCellAlign . Right } ,
28+ {
29+ key : 'instances' ,
30+ content : isTablet ? t ( 'rofl.instances' ) : t ( 'rofl.activeInstances' ) ,
31+ align : TableCellAlign . Right ,
32+ } ,
2633 { key : 'created' , content : t ( 'rofl.created' ) , align : TableCellAlign . Right } ,
2734 {
2835 key : 'lastActivity' ,
@@ -39,8 +46,8 @@ export const RoflAppsList: FC<RoflAppsListProps> = ({ isLoading, limit, paginati
3946 key : 'order' ,
4047 } ,
4148 {
42- content : app . metadata ?. name ? (
43- < RoflAppLink id = { app . id } name = { app . metadata ?. name } network = { app . network } />
49+ content : app ? .metadata [ 'net.oasis.rofl. name' ] ? (
50+ < RoflAppLink id = { app . id } name = { app ? .metadata [ 'net.oasis.rofl. name' ] } network = { app . network } />
4451 ) : (
4552 t ( 'rofl.nameNotProvided' )
4653 ) ,
0 commit comments