fix: total StickyRowHeaderCell

This commit is contained in:
tresabhi committed 2024-11-12 15:18:06 -06:00
1 parent ac35540871
commit a83ce6d350
1 file changed
+3 -2
@@ -36,6 +36,7 @@ import {
import { debounce } from 'lodash-es'; import { debounce } from 'lodash-es';
import { useEffect, useMemo, useRef, useState } from 'react'; import { useEffect, useMemo, useRef, useState } from 'react';
import { PageWrapper } from '../../../components/PageWrapper'; import { PageWrapper } from '../../../components/PageWrapper';
import { StickyRowHeaderCell } from '../../../components/StickyRowHeaderCell';
import { StickyTableRoot } from '../../../components/StickyTableRoot'; import { StickyTableRoot } from '../../../components/StickyTableRoot';
import { TankRowHeaderCell } from '../../../components/TankRowHeaderCell'; import { TankRowHeaderCell } from '../../../components/TankRowHeaderCell';
import { Session, type SessionTracking } from '../../../stores/session'; import { Session, type SessionTracking } from '../../../stores/session';
@@ -397,7 +398,7 @@ function Content() {
overflow: 'hidden', overflow: 'hidden',
}} }}
> >
<Table.RowHeaderCell <StickyRowHeaderCell
style={{ style={{
paddingLeft: 32, paddingLeft: 32,
position: 'relative', position: 'relative',
@@ -405,7 +406,7 @@ function Content() {
}} }}
> >
Total Total
</Table.RowHeaderCell> </StickyRowHeaderCell>
{session.columns.map((column) => ( {session.columns.map((column) => (
<Table.Cell align="center" key={column}> <Table.Cell align="center" key={column}>
{formatCompositeStat(total![column], column, total!)} {formatCompositeStat(total![column], column, total!)}