mirror of
https://github.com/blitzkit/blitzkit.git
synced 2026-11-18 11:25:25 +01:00
feat: progress on compare
This commit is contained in:
1 parent
53c0f48437
commit
d90a3cc010
24 files changed
+214
-93
No files matched your search
@@ -0,0 +1,22 @@
|
||||
import { Heading, Table } from '@radix-ui/themes';
|
||||
import { times } from 'lodash-es';
|
||||
import { CompareEphemeral } from '../../stores/compareEphemeral';
|
||||
import { StickyColumnHeaderCell } from '../StickyColumnHeaderCell';
|
||||
|
||||
export function CompareSectionTitle({ children }: { children: string }) {
|
||||
const memberCount = CompareEphemeral.use((state) => state.members.length);
|
||||
|
||||
return (
|
||||
<Table.Header style={{ height: 48 }}>
|
||||
<Table.Row align="center">
|
||||
<StickyColumnHeaderCell top={137} style={{ left: 0, zIndex: 2 }}>
|
||||
<Heading size="4">{children}</Heading>
|
||||
</StickyColumnHeaderCell>
|
||||
|
||||
{times(memberCount, (index) => (
|
||||
<StickyColumnHeaderCell key={index} top={137} />
|
||||
))}
|
||||
</Table.Row>
|
||||
</Table.Header>
|
||||
);
|
||||
}
|
||||
Reference in new issue
Block a user