mirror of
https://github.com/blitzkit/blitzkit.git
synced 2026-10-23 19:49:50 +02:00
feat: update bot chunk 4
This commit is contained in:
1 parent
5499cb5cca
commit
98724df711
11 files changed
+122
-91
No files matched your search
@@ -8,7 +8,7 @@ import {
|
||||
sumCompositeStats,
|
||||
type IndividualTankStats,
|
||||
} from '@blitzkit/core';
|
||||
import { localizedStrings } from '@blitzkit/i18n';
|
||||
import { STRINGS } from '@blitzkit/i18n';
|
||||
import { ReloadIcon } from '@radix-ui/react-icons';
|
||||
import { ContextMenu } from '@radix-ui/themes';
|
||||
import { useEffect, useMemo, useState } from 'react';
|
||||
@@ -21,15 +21,12 @@ import { BreakdownEmbedCard, BreakdownEmbedWrapper } from '../TanksEmbed';
|
||||
|
||||
export const compositeStatsKeysOptions = compositeStatsKeys.map((value) => ({
|
||||
value,
|
||||
locales: Object.entries(localizedStrings).reduce(
|
||||
(accumulator, [locale, strings]) => {
|
||||
return {
|
||||
...accumulator,
|
||||
[locale]: strings.common.composite_stats[value],
|
||||
};
|
||||
},
|
||||
{},
|
||||
),
|
||||
locales: Object.entries(STRINGS).reduce((accumulator, [locale, strings]) => {
|
||||
return {
|
||||
...accumulator,
|
||||
[locale]: strings.common.composite_stats[value],
|
||||
};
|
||||
}, {}),
|
||||
}));
|
||||
|
||||
const [tankDefinitions, averageDefinitions] = await Promise.all([
|
||||
|
||||
Reference in new issue
Block a user