mirror of
https://github.com/blitzkit/blitzkit.git
synced 2026-12-04 23:32:54 +01:00
migrate compare and tankopedia loadout to new data-driven components, splitting the old monolithic loadout and compare UI into smaller pieces and adding shared Table, Dialog and Scroller primitives
This commit is contained in:
111 files changed
+4009
-3917
No files matched your search
@@ -1,14 +1,11 @@
|
||||
import type { ProvisionDefinitions, TankDefinition } from "@blitzkit/protos";
|
||||
import type { TankDefinition } from "@blitzkit/protos";
|
||||
import { uniqueId } from "lodash-es";
|
||||
import type { CompareMember } from "../../stores/compareEphemeral";
|
||||
import { tankToDuelMember } from "./tankToDuelMember";
|
||||
import { createTankState } from "../../tankopedia/createTankState";
|
||||
|
||||
export function tankToCompareMember(
|
||||
tank: TankDefinition,
|
||||
provisionDefinitions: ProvisionDefinitions,
|
||||
) {
|
||||
export function tankToCompareMember(tank: TankDefinition) {
|
||||
return {
|
||||
...tankToDuelMember(tank, provisionDefinitions),
|
||||
key: uniqueId(),
|
||||
state: createTankState(tank),
|
||||
} satisfies CompareMember;
|
||||
}
|
||||
Reference in new issue
Block a user