mirror of
https://github.com/blitzkit/blitzkit.git
synced 2026-10-24 20:19:49 +02:00
feat: move icon to right
This commit is contained in:
1 parent
a7f68364f3
commit
499bcde320
2 files changed
+3
-4
No files matched your search
@@ -30,6 +30,8 @@ export function Header() {
|
|||||||
minWidth="0px"
|
minWidth="0px"
|
||||||
>
|
>
|
||||||
<Flex align="center" gap="1">
|
<Flex align="center" gap="1">
|
||||||
|
{tankPerformanceSortTypeNames[type]}
|
||||||
|
|
||||||
<IconButton
|
<IconButton
|
||||||
size={isSelected ? '1' : '2'}
|
size={isSelected ? '1' : '2'}
|
||||||
variant={isSelected ? 'soft' : 'ghost'}
|
variant={isSelected ? 'soft' : 'ghost'}
|
||||||
@@ -53,7 +55,6 @@ export function Header() {
|
|||||||
</>
|
</>
|
||||||
)}
|
)}
|
||||||
</IconButton>
|
</IconButton>
|
||||||
{tankPerformanceSortTypeNames[type]}
|
|
||||||
</Flex>
|
</Flex>
|
||||||
</Table.ColumnHeaderCell>
|
</Table.ColumnHeaderCell>
|
||||||
);
|
);
|
||||||
|
|||||||
@@ -1,7 +1,6 @@
|
|||||||
import { Table } from '@radix-ui/themes';
|
import { Table } from '@radix-ui/themes';
|
||||||
import { memo, use, useCallback } from 'react';
|
import { memo, useCallback } from 'react';
|
||||||
import {
|
import {
|
||||||
averageDefinitions,
|
|
||||||
AverageDefinitionsAllStats,
|
AverageDefinitionsAllStats,
|
||||||
AverageDefinitionsEntryWithId,
|
AverageDefinitionsEntryWithId,
|
||||||
} from '../../../../core/blitzkit/averageDefinitions';
|
} from '../../../../core/blitzkit/averageDefinitions';
|
||||||
@@ -13,7 +12,6 @@ interface TotalProps {
|
|||||||
|
|
||||||
export const Total = memo<TotalProps>(
|
export const Total = memo<TotalProps>(
|
||||||
({ tanks }) => {
|
({ tanks }) => {
|
||||||
const awaitedAverageDefinitions = use(averageDefinitions);
|
|
||||||
const ratio = useAveragesExclusionRatio();
|
const ratio = useAveragesExclusionRatio();
|
||||||
const numberFormat = Intl.NumberFormat(undefined, { notation: 'compact' });
|
const numberFormat = Intl.NumberFormat(undefined, { notation: 'compact' });
|
||||||
const sum = useCallback(
|
const sum = useCallback(
|
||||||
|
|||||||
Reference in new issue
Block a user