forked from profectus/Profectus
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 { createLayerTreeNode, createResetButton } from "../common";
|
||||
|
||||
const layer = createLayer(() => {
|
||||
const id = "p";
|
||||
const layer = createLayer(id, () => {
|
||||
const name = "Prestige";
|
||||
const color = "#4BDC13";
|
||||
const points = createResource<DecimalSource>(0, "prestige points");
|
||||
|
@ -43,7 +43,6 @@ const layer = createLayer(() => {
|
|||
}));
|
||||
|
||||
return {
|
||||
id,
|
||||
name,
|
||||
color,
|
||||
points,
|
||||
|
|
|
@ -13,7 +13,7 @@ import prestige from "./layers/prestige";
|
|||
/**
|
||||
* @hidden
|
||||
*/
|
||||
export const main = createLayer(() => {
|
||||
export const main = createLayer("main", () => {
|
||||
const points = createResource<DecimalSource>(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(() => (
|
||||
|
|
Loading…
Reference in a new issue