From d562de8b399400ae9a66395774335f9817225740 Mon Sep 17 00:00:00 2001 From: Justin Edmund Date: Sun, 22 Jan 2023 22:33:42 -0800 Subject: [PATCH 1/4] Add granblue ID to Job type --- types/Job.d.ts | 1 + 1 file changed, 1 insertion(+) diff --git a/types/Job.d.ts b/types/Job.d.ts index 7c1f5939..beb75dff 100644 --- a/types/Job.d.ts +++ b/types/Job.d.ts @@ -1,5 +1,6 @@ interface Job { id: string + granblue_id: string row: string ml: boolean order: number From fefcd912900b586f7d7fba54a48ed787d951d9a1 Mon Sep 17 00:00:00 2001 From: Justin Edmund Date: Sun, 22 Jan 2023 22:45:23 -0800 Subject: [PATCH 2/4] Display icons in dropdown and trigger --- components/JobDropdown/index.tsx | 11 ++++++++++- components/Select/index.scss | 6 ++++++ components/Select/index.tsx | 3 +++ components/SelectItem/index.scss | 7 +++++++ components/SelectItem/index.tsx | 3 +++ 5 files changed, 29 insertions(+), 1 deletion(-) diff --git a/components/JobDropdown/index.tsx b/components/JobDropdown/index.tsx index d9c9d891..71fc6eee 100644 --- a/components/JobDropdown/index.tsx +++ b/components/JobDropdown/index.tsx @@ -91,7 +91,12 @@ const JobDropdown = React.forwardRef( .sort((a, b) => a.order - b.order) .map((item, i) => { return ( - + {item.name[locale]} ) @@ -109,6 +114,10 @@ const JobDropdown = React.forwardRef( return (