xonecas.io
366
Hc

hirenimble-challenge / files

hirenimble-challenge / src / utils / enums.js

508 bytes
1export const colorMapping = {
2  1: 'red',
3  2: 'green',
4  3: 'blue',
5  4: 'yellow'
6};
7
8export const roleStatuses = () => [
9  { key: 0, value: 'draft', label: 'Draft' },
10  { key: 10, value: 'submitted', label: 'Pending approval' },
11  { key: 20, value: 'active', label: 'Active' },
12  { key: 30, value: 'archived', label: 'Archived' }
13];
14
15export const appStatusType = {
16  draft: 0,
17  pre_hiring_pool: 1,
18  hiring_pool: 2,
19  post_hiring_pool: 3,
20  hired: 4,
21  archived: 5,
22  offer_declined: 6,
23  onboarding: 7
24};