diff --git a/src/views/MyAvatars/columns.jsx b/src/views/MyAvatars/columns.jsx index c198b1e0..9a305d3c 100644 --- a/src/views/MyAvatars/columns.jsx +++ b/src/views/MyAvatars/columns.jsx @@ -115,7 +115,7 @@ export function getColumns({ const ref = row.original; return ( { e.stopPropagation(); onShowAvatarDialog(ref.id); @@ -126,42 +126,6 @@ export function getColumns({ ); } }, - { - id: 'platforms', - header: () => t('dialog.avatar.info.platform'), - size: 120, - enableSorting: false, - meta: { label: () => t('dialog.avatar.info.platform') }, - cell: ({ row }) => { - const ref = row.original; - const platforms = getAvailablePlatforms(ref.unityPackages); - return ( -
- {platforms.isPC && ( - - - - )} - {platforms.isQuest && ( - - - - )} - {platforms.isIos && ( - - - - )} -
- ); - } - }, { id: 'customTags', accessorFn: (row) => (row.$tags || []).map((t) => t.tag).join(', '), @@ -202,6 +166,42 @@ export function getColumns({ ); } }, + { + id: 'platforms', + header: () => t('dialog.avatar.info.platform'), + size: 120, + enableSorting: false, + meta: { label: () => t('dialog.avatar.info.platform') }, + cell: ({ row }) => { + const ref = row.original; + const platforms = getAvailablePlatforms(ref.unityPackages); + return ( +
+ {platforms.isPC && ( + + + + )} + {platforms.isQuest && ( + + + + )} + {platforms.isIos && ( + + + + )} +
+ ); + } + }, { id: 'visibility', accessorKey: 'releaseStatus', @@ -235,11 +235,7 @@ export function getColumns({ }, cell: ({ row }) => { const time = row.original?.$timeSpent; - return time ? ( - {timeToText(time)} - ) : ( - - - ); + return time ? {timeToText(time)} : -; } }, { @@ -256,9 +252,7 @@ export function getColumns({ class: 'text-right', label: () => t('dialog.avatar.info.version') }, - cell: ({ row }) => ( - {row.original.version ?? '-'} - ) + cell: ({ row }) => {row.original.version ?? '-'} }, { id: 'pcPerf', @@ -275,7 +269,7 @@ export function getColumns({ const perf = getPlatformInfo(row.original.unityPackages)?.pc ?.performanceRating; return perf ? ( - {perf} + {perf} ) : ( - ); @@ -297,7 +291,7 @@ export function getColumns({ const perf = getPlatformInfo(row.original.unityPackages) ?.android?.performanceRating; return perf ? ( - {perf} + {perf} ) : ( - ); @@ -319,7 +313,7 @@ export function getColumns({ const perf = getPlatformInfo(row.original.unityPackages)?.ios ?.performanceRating; return perf ? ( - {perf} + {perf} ) : ( - ); @@ -338,11 +332,7 @@ export function getColumns({ meta: { label: () => t('dialog.avatar.info.last_updated') }, cell: ({ row }) => { const ref = row.original; - return ( - - {formatDateFilter(ref.updated_at, 'long')} - - ); + return {formatDateFilter(ref.updated_at, 'long')}; } }, { @@ -358,11 +348,7 @@ export function getColumns({ meta: { label: () => t('dialog.avatar.info.created_at') }, cell: ({ row }) => { const ref = row.original; - return ( - - {formatDateFilter(ref.created_at, 'long')} - - ); + return {formatDateFilter(ref.created_at, 'long')}; } }, {