From 6bbd9b990a0a103ad8cb4d42e91f6b1867b14e31 Mon Sep 17 00:00:00 2001 From: thepaperpilot Date: Sun, 10 Apr 2022 19:14:49 -0500 Subject: [PATCH] Update default layers to use new createLayer signature --- src/data/layers/prestige.tsx | 5 ++--- src/data/projEntry.tsx | 3 +-- 2 files changed, 3 insertions(+), 5 deletions(-) diff --git a/src/data/layers/prestige.tsx b/src/data/layers/prestige.tsx index 0dfdaff..12f2da3 100644 --- a/src/data/layers/prestige.tsx +++ b/src/data/layers/prestige.tsx @@ -13,8 +13,8 @@ import { DecimalSource } from "util/bignum"; import { render } from "util/vue"; import { createLayerTreeNode, createResetButton } from "../common"; -const layer = createLayer(() => { - const id = "p"; +const id = "p"; +const layer = createLayer(id, () => { const name = "Prestige"; const color = "#4BDC13"; const points = createResource(0, "prestige points"); @@ -43,7 +43,6 @@ const layer = createLayer(() => { })); return { - id, name, color, points, diff --git a/src/data/projEntry.tsx b/src/data/projEntry.tsx index c004a87..aa10cd7 100644 --- a/src/data/projEntry.tsx +++ b/src/data/projEntry.tsx @@ -13,7 +13,7 @@ import prestige from "./layers/prestige"; /** * @hidden */ -export const main = createLayer(() => { +export const main = createLayer("main", () => { const points = createResource(10); const best = trackBest(points); const total = trackTotal(points); @@ -40,7 +40,6 @@ export const main = createLayer(() => { })) as GenericTree; return { - id: "main", name: "Tree", links: tree.links, display: jsx(() => (