migrate transaction category preset page to composition API and typescript

This commit is contained in:
MaysWind
2025-01-16 00:43:50 +08:00
parent 6ef42a9303
commit b09b66adc3
5 changed files with 190 additions and 116 deletions
+1 -14
View File
@@ -1,17 +1,4 @@
import type { ColorValue } from '@/core/color.ts';
export interface PresetCategory {
readonly name: string;
readonly categoryIconId: string;
readonly color: ColorValue;
readonly subCategories: PresetSubCategory[];
}
export interface PresetSubCategory {
readonly name: string;
readonly categoryIconId: string;
readonly color: ColorValue;
}
import type { PresetCategory } from '@/core/category.ts';
export const DEFAULT_EXPENSE_CATEGORIES: PresetCategory[] = [
{