-
Notifications
You must be signed in to change notification settings - Fork 4
/
category_constants.ts
61 lines (56 loc) · 1.94 KB
/
category_constants.ts
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
import { TCategoriesType } from '@deriv/types';
export const CATEGORIES = Object.freeze({
ALL: 'All',
ACCOUNTS: 'Accounts',
CURRENCIES: 'Currencies',
FLAGS: 'Flags',
ILLUSTRATIONS: 'Illustrations',
ILLUSTRATIVE: 'Illustrative',
LABEL_PAIRED: 'Label Paired',
LOGO: 'Logo',
MARKETS: 'Markets',
SOCIAL: 'Social',
STANDALONE: 'Standalone',
PAYMENTMETHODS: 'PaymentMethods',
LEGACY: 'Legacy',
TRADETYPES: 'TradeTypes',
});
export const CATEGORY_PROMISES = {
[CATEGORIES.ACCOUNTS]: import('@deriv/quill-icons/Accounts'),
[CATEGORIES.CURRENCIES]: import('@deriv/quill-icons/Currencies'),
[CATEGORIES.FLAGS]: import('@deriv/quill-icons/Flags'),
[CATEGORIES.ILLUSTRATIONS]: import('@deriv/quill-icons/Illustration'),
[CATEGORIES.ILLUSTRATIVE]: import('@deriv/quill-icons/Illustrative'),
[CATEGORIES.LABEL_PAIRED]: import('@deriv/quill-icons/LabelPaired'),
[CATEGORIES.LOGO]: import('@deriv/quill-icons/Logo'),
[CATEGORIES.LEGACY]: import('@deriv/quill-icons/Legacy'),
[CATEGORIES.MARKETS]: import('@deriv/quill-icons/Markets'),
[CATEGORIES.SOCIAL]: import('@deriv/quill-icons/Social'),
[CATEGORIES.STANDALONE]: import('@deriv/quill-icons/Standalone'),
[CATEGORIES.PAYMENTMETHODS]: import('@deriv/quill-icons/PaymentMethods'),
[CATEGORIES.TRADETYPES]: import('@deriv/quill-icons/TradeTypes'),
};
export const DEFAULT_CATEGORY: TCategoriesType = CATEGORIES.ACCOUNTS;
// Supported options:
// 1. Custom icon size like w:120px, h:120px
export const CATEGORIES_TYPE_A: string[] = [
CATEGORIES.ALL,
CATEGORIES.LOGO,
CATEGORIES.ILLUSTRATIONS,
];
// Supported options:
// 1. Icon Fill color
// 2. Predefined icon size like sm, md, lg etc.
export const CATEGORIES_TYPE_B: string[] = [
CATEGORIES.ALL,
CATEGORIES.ACCOUNTS,
CATEGORIES.CURRENCIES,
CATEGORIES.FLAGS,
CATEGORIES.ILLUSTRATIVE,
CATEGORIES.MARKETS,
CATEGORIES.SOCIAL,
CATEGORIES.STANDALONE,
CATEGORIES.PAYMENTMETHODS,
CATEGORIES.LEGACY,
CATEGORIES.TRADETYPES,
];