Fix form keyboard issues and sticky footers in agent screens
This commit is contained in:
@@ -0,0 +1,54 @@
|
||||
import type { AgentLoanCategory, CollectionMode, NewAccountType, SmsType } from '../types/agentTypes';
|
||||
|
||||
export const COLLECTION_MODES: { id: CollectionMode; label: string; icon: string }[] = [
|
||||
{ id: 'cash', label: 'Cash', icon: 'cash-outline' },
|
||||
{ id: 'upi', label: 'UPI', icon: 'phone-portrait-outline' },
|
||||
{ id: 'bank_transfer', label: 'Bank Transfer', icon: 'swap-horizontal-outline' },
|
||||
];
|
||||
|
||||
export const ACCOUNT_TYPES: { id: NewAccountType; label: string; description: string; icon: string }[] = [
|
||||
{ id: 'DDS', label: 'DDS Account', description: 'Daily Deposit Scheme for regular savings', icon: 'calendar-outline' },
|
||||
{ id: 'RD', label: 'RD Account', description: 'Recurring Deposit with fixed monthly installments', icon: 'trending-up-outline' },
|
||||
{ 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' },
|
||||
];
|
||||
|
||||
export const SMS_TYPES: { id: SmsType; label: string; icon: string }[] = [
|
||||
{ id: 'balance', label: 'Balance Confirmation', icon: 'wallet-outline' },
|
||||
{ id: 'payment_success', label: 'Payment Success', icon: 'checkmark-circle-outline' },
|
||||
{ id: 'due_reminder', label: 'Due Reminder', icon: 'alarm-outline' },
|
||||
{ id: 'loan_status', label: 'Loan Status', icon: 'document-text-outline' },
|
||||
{ id: 'account_created', label: 'Account Created', icon: 'person-add-outline' },
|
||||
];
|
||||
|
||||
export const CUSTOMER_FILTERS = [
|
||||
{ id: 'all', label: 'All' },
|
||||
{ id: 'paid', label: 'Paid' },
|
||||
{ id: 'pending', label: 'Pending' },
|
||||
{ id: 'overdue', label: 'Overdue' },
|
||||
] as const;
|
||||
|
||||
export const DEFAULT_COMMISSION_RATE = 2.5; // percentage
|
||||
|
||||
export const ACCOUNT_OPENING_STEPS: { id: string; label: string }[] = [
|
||||
{ id: 'type', label: 'Account Type' },
|
||||
{ id: 'personal', label: 'Personal Info' },
|
||||
{ id: 'kyc', label: 'KYC Details' },
|
||||
{ id: 'deposit', label: 'Initial Deposit' },
|
||||
{ id: 'review', label: 'Review' },
|
||||
];
|
||||
|
||||
export const LOAN_REQUEST_STEPS: { id: string; label: string }[] = [
|
||||
{ id: 'customer', label: 'Customer' },
|
||||
{ id: 'details', label: 'Loan Details' },
|
||||
{ id: 'documents', label: 'Documents' },
|
||||
{ id: 'review', label: 'Review' },
|
||||
];
|
||||
Reference in New Issue
Block a user