Update CBS Mobile App codebase
This commit is contained in:
@@ -1,4 +1,5 @@
|
||||
import type { AgentLoanCategory, CollectionMode, NewAccountType, SmsType } from '../types/agentTypes';
|
||||
import type { CategoryHue } from '../../../theme';
|
||||
|
||||
export const COLLECTION_MODES: { id: CollectionMode; label: string; icon: string }[] = [
|
||||
{ id: 'cash', label: 'Cash', icon: 'cash-outline' },
|
||||
@@ -12,13 +13,32 @@ export const ACCOUNT_TYPES: { id: NewAccountType; label: string; description: st
|
||||
{ id: 'Savings', label: 'Savings Account', description: 'Standard savings account with interest', icon: 'wallet-outline' },
|
||||
];
|
||||
|
||||
export const LOAN_CATEGORIES: { id: AgentLoanCategory; label: string; icon: string; color: string }[] = [
|
||||
{ id: 'Personal', label: 'Personal Loan', icon: 'person-outline', color: '#3B82F6' },
|
||||
{ id: 'Gold', label: 'Gold Loan', icon: 'diamond-outline', color: '#F59E0B' },
|
||||
{ id: 'Vehicle', label: 'Vehicle Loan', icon: 'car-outline', color: '#10B981' },
|
||||
{ id: 'Housing', label: 'Housing Loan', icon: 'home-outline', color: '#6366F1' },
|
||||
{ id: 'Agriculture', label: 'Agriculture Loan', icon: 'leaf-outline', color: '#22C55E' },
|
||||
{ id: 'Business', label: 'Business Loan', icon: 'briefcase-outline', color: '#EF4444' },
|
||||
/**
|
||||
* The loan types an agent can raise a request for.
|
||||
*
|
||||
* Each carries a categorical HUE rather than a hex. These are labels, not
|
||||
* states — nothing about a housing loan is "worse" than a personal one — so
|
||||
* they resolve through `theme.colors.category`, which hands back a tone that
|
||||
* is legible on whichever ramp is live plus a matching tint for the chip.
|
||||
*
|
||||
* Seven types, seven distinct hues. Business was a Tailwind red and Agriculture
|
||||
* a second green; a red that means nothing sits badly next to a red that means
|
||||
* "declined", and two greens next to each other defeat the point of colouring
|
||||
* them at all.
|
||||
*/
|
||||
export const LOAN_CATEGORIES: {
|
||||
id: AgentLoanCategory;
|
||||
label: string;
|
||||
icon: string;
|
||||
hue: CategoryHue;
|
||||
}[] = [
|
||||
{ id: 'Personal', label: 'Personal Loan', icon: 'person-outline', hue: 'blue' },
|
||||
{ id: 'Gold', label: 'Gold Loan', icon: 'diamond-outline', hue: 'amber' },
|
||||
{ id: 'Vehicle', label: 'Vehicle Loan', icon: 'car-outline', hue: 'green' },
|
||||
{ id: 'Housing', label: 'Housing Loan', icon: 'home-outline', hue: 'indigo' },
|
||||
{ id: 'Agriculture', label: 'Agriculture Loan', icon: 'leaf-outline', hue: 'teal' },
|
||||
{ id: 'Business', label: 'Business Loan', icon: 'briefcase-outline', hue: 'violet' },
|
||||
{ id: 'DDS', label: 'Loan Against DDS Deposit', icon: 'wallet-outline', hue: 'sky' },
|
||||
];
|
||||
|
||||
export const SMS_TYPES: { id: SmsType; label: string; icon: string }[] = [
|
||||
|
||||
Reference in New Issue
Block a user