- {row.getVisibleCells().map((cell) => {
- const columnId = cell.column.id || cell.column.columnDef?.accessorKey;
- const isNameColumn = columnId === 'fundName';
- const rightAlignedColumns = new Set([
- 'latestNav',
- 'estimateNav',
- 'yesterdayChangePercent',
- 'estimateChangePercent',
- 'totalChangePercent',
- 'holdingAmount',
- 'todayProfit',
- 'holdingProfit',
- ]);
- const align = isNameColumn
- ? ''
- : rightAlignedColumns.has(columnId)
- ? 'text-right'
- : 'text-center';
- const cellClassName =
- (cell.column.columnDef.meta && cell.column.columnDef.meta.cellClassName) || '';
- const style = getCommonPinningStyles(cell.column, false);
- const isPinned = cell.column.getIsPinned();
- return (
-
- {flexRender(
- cell.column.columnDef.cell,
- cell.getContext(),
- )}
-
- );
- })}
-
-