From e328b656afdd875fe456b83f0cf46f38b250ef08 Mon Sep 17 00:00:00 2001 From: Dita Aji Pratama Date: Sat, 18 Apr 2026 12:23:43 +0700 Subject: [PATCH] feat: add CATEGORIES constant - Add categories array with id and label - Use for consistent category options --- types/index.ts | 14 +++++++++++++- 1 file changed, 13 insertions(+), 1 deletion(-) diff --git a/types/index.ts b/types/index.ts index c9aaf12..7d8864c 100644 --- a/types/index.ts +++ b/types/index.ts @@ -11,4 +11,16 @@ export interface BalanceInfo { total: number; income: number; expense: number; -} \ No newline at end of file +} + +export const CATEGORIES = [ + { id: 'makanan', label: 'Makanan' }, + { id: 'transport', label: 'Transport' }, + { id: 'belanja', label: 'Belanja' }, + { id: 'hiburan', label: 'Hiburan' }, + { id: 'kesehatan', label: 'Kesehatan' }, + { id: 'pendidikan', label: 'Pendidikan' }, + { id: 'investasi', label: 'Investasi' }, + { id: 'gaji', label: 'Gaji' }, + { id: 'lainnya', label: 'Lainnya' }, +] as const; \ No newline at end of file