mirror of
https://github.com/blitzkit/blitzkit.git
synced 2026-10-21 18:57:03 +02:00
fix: use order instead of group
This commit is contained in:
1 parent
2e95f5dd95
commit
a2a794eb74
4 files changed
+8
-8
No files matched your search
+1
-1
@@ -19,7 +19,7 @@ type CharacteristicsOrder = {
|
||||
)[];
|
||||
}[];
|
||||
|
||||
export const characteristicsGroups: CharacteristicsOrder = [
|
||||
export const characteristicsOrder: CharacteristicsOrder = [
|
||||
{
|
||||
group: "firepower",
|
||||
order: [
|
||||
@@ -0,0 +1,5 @@
|
||||
import { characteristicsOrder } from "../../../core/tankopedia/characteristicsOrder";
|
||||
|
||||
export function GET() {
|
||||
return Response.json(characteristicsOrder);
|
||||
}
|
||||
@@ -1,5 +0,0 @@
|
||||
import { _characteristicsOrder } from "../../../../core/tankopedia/characteristics";
|
||||
|
||||
export function GET() {
|
||||
return Response.json(_characteristicsOrder);
|
||||
}
|
||||
@@ -2,7 +2,7 @@ import { times } from "lodash-es";
|
||||
import { Suspense, useMemo } from "react";
|
||||
import { api } from "../../../core/api/dynamic";
|
||||
import { aggregateStageParameters } from "../../../core/tankopedia/aggregateStageParameters";
|
||||
import { characteristicsGroups } from "../../../core/tankopedia/characteristicsGroups";
|
||||
import { characteristicsOrder } from "../../../core/tankopedia/characteristicsOrder";
|
||||
import { computeCharacteristics } from "../../../core/tankopedia/computeCharacteristics";
|
||||
import { useAwait } from "../../../hooks/useAwait";
|
||||
import { Tankopedia } from "../../../stores/tankopedia";
|
||||
@@ -70,7 +70,7 @@ function Content({ id }: { id: string }) {
|
||||
))}
|
||||
</div>
|
||||
|
||||
{characteristicsGroups.map(({ group, order }) => (
|
||||
{characteristicsOrder.map(({ group, order }) => (
|
||||
<>
|
||||
<h2 key={group}>{group}</h2>
|
||||
|
||||
|
||||
Reference in new issue
Block a user