Update default layers to use new createLayer signature
This commit is contained in:
parent
99cda9f344
commit
6bbd9b990a
2 changed files with 3 additions and 5 deletions
|
@ -13,8 +13,8 @@ import { DecimalSource } from "util/bignum";
|
||||||
import { render } from "util/vue";
|
import { render } from "util/vue";
|
||||||
import { createLayerTreeNode, createResetButton } from "../common";
|
import { createLayerTreeNode, createResetButton } from "../common";
|
||||||
|
|
||||||
const layer = createLayer(() => {
|
|
||||||
const id = "p";
|
const id = "p";
|
||||||
|
const layer = createLayer(id, () => {
|
||||||
const name = "Prestige";
|
const name = "Prestige";
|
||||||
const color = "#4BDC13";
|
const color = "#4BDC13";
|
||||||
const points = createResource<DecimalSource>(0, "prestige points");
|
const points = createResource<DecimalSource>(0, "prestige points");
|
||||||
|
@ -43,7 +43,6 @@ const layer = createLayer(() => {
|
||||||
}));
|
}));
|
||||||
|
|
||||||
return {
|
return {
|
||||||
id,
|
|
||||||
name,
|
name,
|
||||||
color,
|
color,
|
||||||
points,
|
points,
|
||||||
|
|
|
@ -13,7 +13,7 @@ import prestige from "./layers/prestige";
|
||||||
/**
|
/**
|
||||||
* @hidden
|
* @hidden
|
||||||
*/
|
*/
|
||||||
export const main = createLayer(() => {
|
export const main = createLayer("main", () => {
|
||||||
const points = createResource<DecimalSource>(10);
|
const points = createResource<DecimalSource>(10);
|
||||||
const best = trackBest(points);
|
const best = trackBest(points);
|
||||||
const total = trackTotal(points);
|
const total = trackTotal(points);
|
||||||
|
@ -40,7 +40,6 @@ export const main = createLayer(() => {
|
||||||
})) as GenericTree;
|
})) as GenericTree;
|
||||||
|
|
||||||
return {
|
return {
|
||||||
id: "main",
|
|
||||||
name: "Tree",
|
name: "Tree",
|
||||||
links: tree.links,
|
links: tree.links,
|
||||||
display: jsx(() => (
|
display: jsx(() => (
|
||||||
|
|
Loading…
Reference in a new issue