Add Job to appState
This commit is contained in:
parent
cafad91daf
commit
d356219155
1 changed files with 17 additions and 0 deletions
|
|
@ -1,5 +1,20 @@
|
||||||
import { proxy } from "valtio";
|
import { proxy } from "valtio";
|
||||||
|
|
||||||
|
const emptyJob: Job = {
|
||||||
|
id: "-1",
|
||||||
|
row: "",
|
||||||
|
ml: false,
|
||||||
|
order: 0,
|
||||||
|
name: {
|
||||||
|
en: "",
|
||||||
|
ja: ""
|
||||||
|
},
|
||||||
|
proficiency: {
|
||||||
|
proficiency1: 0,
|
||||||
|
proficiency2: 0
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
interface AppState {
|
interface AppState {
|
||||||
[key: string]: any
|
[key: string]: any
|
||||||
|
|
||||||
|
|
@ -9,6 +24,7 @@ interface AppState {
|
||||||
detailsVisible: boolean,
|
detailsVisible: boolean,
|
||||||
name: string | undefined,
|
name: string | undefined,
|
||||||
description: string | undefined,
|
description: string | undefined,
|
||||||
|
job: Job,
|
||||||
raid: Raid | undefined,
|
raid: Raid | undefined,
|
||||||
element: number,
|
element: number,
|
||||||
extra: boolean,
|
extra: boolean,
|
||||||
|
|
@ -46,6 +62,7 @@ export const initialAppState: AppState = {
|
||||||
detailsVisible: false,
|
detailsVisible: false,
|
||||||
name: undefined,
|
name: undefined,
|
||||||
description: undefined,
|
description: undefined,
|
||||||
|
job: emptyJob,
|
||||||
raid: undefined,
|
raid: undefined,
|
||||||
element: 0,
|
element: 0,
|
||||||
extra: false,
|
extra: false,
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue