From d7cb459f990539db9a5935349284fd53dad30a66 Mon Sep 17 00:00:00 2001 From: Justin Edmund Date: Mon, 4 Apr 2022 23:42:22 -0700 Subject: [PATCH] Add Job type and JobGroups array --- types/Job.d.ts | 15 ++++++++++++ utils/jobGroups.tsx | 60 +++++++++++++++++++++++++++++++++++++++++++++ 2 files changed, 75 insertions(+) create mode 100644 types/Job.d.ts create mode 100644 utils/jobGroups.tsx diff --git a/types/Job.d.ts b/types/Job.d.ts new file mode 100644 index 00000000..bab89b90 --- /dev/null +++ b/types/Job.d.ts @@ -0,0 +1,15 @@ +interface Job { + id: string + row: string + ml: boolean + order: number + name: { + [key: string]: string + en: string + ja: string + } + proficiency: { + proficiency1: number + proficiency2: number + } +} \ No newline at end of file diff --git a/utils/jobGroups.tsx b/utils/jobGroups.tsx new file mode 100644 index 00000000..2741a638 --- /dev/null +++ b/utils/jobGroups.tsx @@ -0,0 +1,60 @@ +interface JobGroup { + slug: string + name: { + [key: string]: string + en: string + ja: string + } +} + +export const jobGroups: JobGroup[] = [ + { + slug: "1", + name: { + en: 'Row I', + ja: 'Class I' + } + }, + { + slug: "2", + name: { + en: 'Row II', + ja: 'Class II' + } + }, + { + slug: "3", + name: { + en: 'Row III', + ja: 'Class III' + } + }, + { + slug: "4", + name: { + en: 'Row IV', + ja: 'Class IV' + } + }, + { + slug: "5", + name: { + en: 'Row V', + ja: 'Class V' + } + }, + { + slug: "ex1", + name: { + en: 'Extra I', + ja: 'EXTRA I' + } + }, + { + slug: "ex2", + name: { + en: 'Extra II', + ja: 'EXTRA II' + } + }, +] \ No newline at end of file