Skip to content

Commit 0079210

Browse files
committed
refactor: update category icons to use CategoryIcon constants
1 parent 7ce347c commit 0079210

File tree

1 file changed

+35
-34
lines changed
  • shared/src/commonMain/kotlin/com/prof18/moneyflow/database/default

1 file changed

+35
-34
lines changed
Lines changed: 35 additions & 34 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
package com.prof18.moneyflow.database.default
22

33
import com.prof18.moneyflow.database.model.TransactionType
4+
import com.prof18.moneyflow.presentation.model.CategoryIcon
45
import kotlin.time.Clock
56

67
internal data class DefaultCategory(
@@ -17,205 +18,205 @@ internal val defaultCategories = listOf(
1718
DefaultCategory(
1819
name = "Accessories",
1920
type = TransactionType.OUTCOME,
20-
iconName = "ic_black_tie",
21+
iconName = CategoryIcon.IC_BLACK_TIE.iconName,
2122
createdAtMillis = seedTimestamp,
2223
),
2324
DefaultCategory(
2425
name = "Bar",
2526
type = TransactionType.OUTCOME,
26-
iconName = "ic_cocktail_solid",
27+
iconName = CategoryIcon.IC_COCKTAIL_SOLID.iconName,
2728
createdAtMillis = seedTimestamp,
2829
),
2930
DefaultCategory(
3031
name = "Books",
3132
type = TransactionType.OUTCOME,
32-
iconName = "ic_book_solid",
33+
iconName = CategoryIcon.IC_BOOK_SOLID.iconName,
3334
createdAtMillis = seedTimestamp,
3435
),
3536
DefaultCategory(
3637
name = "Clothing",
3738
type = TransactionType.OUTCOME,
38-
iconName = "ic_tshirt_solid",
39+
iconName = CategoryIcon.IC_TSHIRT_SOLID.iconName,
3940
createdAtMillis = seedTimestamp,
4041
),
4142
DefaultCategory(
4243
name = "Eating Out",
4344
type = TransactionType.OUTCOME,
44-
iconName = "ic_hamburger_solid",
45+
iconName = CategoryIcon.IC_HAMBURGER_SOLID.iconName,
4546
createdAtMillis = seedTimestamp,
4647
),
4748
DefaultCategory(
4849
name = "Education",
4950
type = TransactionType.OUTCOME,
50-
iconName = "ic_graduation_cap_solid",
51+
iconName = CategoryIcon.IC_GRADUATION_CAP_SOLID.iconName,
5152
createdAtMillis = seedTimestamp,
5253
),
5354
DefaultCategory(
5455
name = "Electronics",
5556
type = TransactionType.OUTCOME,
56-
iconName = "ic_laptop_solid",
57+
iconName = CategoryIcon.IC_LAPTOP_SOLID.iconName,
5758
createdAtMillis = seedTimestamp,
5859
),
5960
DefaultCategory(
6061
name = "Entertainment",
6162
type = TransactionType.OUTCOME,
62-
iconName = "ic_bowling_ball_solid",
63+
iconName = CategoryIcon.IC_BOWLING_BALL_SOLID.iconName,
6364
createdAtMillis = seedTimestamp,
6465
),
6566
DefaultCategory(
6667
name = "Extra Income",
6768
type = TransactionType.INCOME,
68-
iconName = "ic_donate_solid",
69+
iconName = CategoryIcon.IC_DONATE_SOLID.iconName,
6970
createdAtMillis = seedTimestamp,
7071
),
7172
DefaultCategory(
7273
name = "Family",
7374
type = TransactionType.OUTCOME,
74-
iconName = "ic_home_solid",
75+
iconName = CategoryIcon.IC_HOME_SOLID.iconName,
7576
createdAtMillis = seedTimestamp,
7677
),
7778
DefaultCategory(
7879
name = "Fees",
7980
type = TransactionType.OUTCOME,
80-
iconName = "ic_file_invoice_dollar_solid",
81+
iconName = CategoryIcon.IC_FILE_INVOICE_DOLLAR_SOLID.iconName,
8182
createdAtMillis = seedTimestamp,
8283
),
8384
DefaultCategory(
8485
name = "Film",
8586
type = TransactionType.OUTCOME,
86-
iconName = "ic_film_solid",
87+
iconName = CategoryIcon.IC_FILM_SOLID.iconName,
8788
createdAtMillis = seedTimestamp,
8889
),
8990
DefaultCategory(
9091
name = "Food & Beverage",
9192
type = TransactionType.OUTCOME,
92-
iconName = "ic_drumstick_bite_solid",
93+
iconName = CategoryIcon.IC_DRUMSTICK_BITE_SOLID.iconName,
9394
createdAtMillis = seedTimestamp,
9495
),
9596
DefaultCategory(
9697
name = "Footwear",
9798
type = TransactionType.OUTCOME,
98-
iconName = "ic_socks_solid",
99+
iconName = CategoryIcon.IC_SOCKS_SOLID.iconName,
99100
createdAtMillis = seedTimestamp,
100101
),
101102
DefaultCategory(
102103
name = "Gifts",
103104
type = TransactionType.OUTCOME,
104-
iconName = "ic_gift_solid",
105+
iconName = CategoryIcon.IC_GIFT_SOLID.iconName,
105106
createdAtMillis = seedTimestamp,
106107
),
107108
DefaultCategory(
108109
name = "Hairdresser",
109110
type = TransactionType.OUTCOME,
110-
iconName = "ic_cut_solid",
111+
iconName = CategoryIcon.IC_CUT_SOLID.iconName,
111112
createdAtMillis = seedTimestamp,
112113
),
113114
DefaultCategory(
114115
name = "Hotel",
115116
type = TransactionType.OUTCOME,
116-
iconName = "ic_building",
117+
iconName = CategoryIcon.IC_BUILDING.iconName,
117118
createdAtMillis = seedTimestamp,
118119
),
119120
DefaultCategory(
120121
name = "Internet Service",
121122
type = TransactionType.OUTCOME,
122-
iconName = "ic_server_solid",
123+
iconName = CategoryIcon.IC_SERVER_SOLID.iconName,
123124
createdAtMillis = seedTimestamp,
124125
),
125126
DefaultCategory(
126127
name = "Love and Friends",
127128
type = TransactionType.OUTCOME,
128-
iconName = "ic_user_friends_solid",
129+
iconName = CategoryIcon.IC_USER_FRIENDS_SOLID.iconName,
129130
createdAtMillis = seedTimestamp,
130131
),
131132
DefaultCategory(
132133
name = "Medical",
133134
type = TransactionType.OUTCOME,
134-
iconName = "ic_hospital",
135+
iconName = CategoryIcon.IC_HOSPITAL.iconName,
135136
createdAtMillis = seedTimestamp,
136137
),
137138
DefaultCategory(
138139
name = "Music",
139140
type = TransactionType.OUTCOME,
140-
iconName = "ic_headphones_solid",
141+
iconName = CategoryIcon.IC_HEADPHONES_SOLID.iconName,
141142
createdAtMillis = seedTimestamp,
142143
),
143144
DefaultCategory(
144145
name = "Other",
145146
type = TransactionType.OUTCOME,
146-
iconName = "ic_dollar_sign",
147+
iconName = CategoryIcon.IC_DOLLAR_SIGN.iconName,
147148
createdAtMillis = seedTimestamp,
148149
),
149150
DefaultCategory(
150151
name = "Parking Fees",
151152
type = TransactionType.OUTCOME,
152-
iconName = "ic_parking_solid",
153+
iconName = CategoryIcon.IC_PARKING_SOLID.iconName,
153154
createdAtMillis = seedTimestamp,
154155
),
155156
DefaultCategory(
156157
name = "Petrol",
157158
type = TransactionType.OUTCOME,
158-
iconName = "ic_charging_station_solid",
159+
iconName = CategoryIcon.IC_CHARGING_STATION_SOLID.iconName,
159160
createdAtMillis = seedTimestamp,
160161
),
161162
DefaultCategory(
162163
name = "Phone",
163164
type = TransactionType.OUTCOME,
164-
iconName = "ic_phone_solid",
165+
iconName = CategoryIcon.IC_PHONE_SOLID.iconName,
165166
createdAtMillis = seedTimestamp,
166167
),
167168
DefaultCategory(
168169
name = "Plane",
169170
type = TransactionType.OUTCOME,
170-
iconName = "ic_plane_solid",
171+
iconName = CategoryIcon.IC_PLANE_SOLID.iconName,
171172
createdAtMillis = seedTimestamp,
172173
),
173174
DefaultCategory(
174175
name = "Salary",
175176
type = TransactionType.INCOME,
176-
iconName = "ic_money_check_alt_solid",
177+
iconName = CategoryIcon.IC_MONEY_CHECK_ALT_SOLID.iconName,
177178
createdAtMillis = seedTimestamp,
178179
),
179180
DefaultCategory(
180181
name = "Selling",
181182
type = TransactionType.INCOME,
182-
iconName = "ic_dolly_solid",
183+
iconName = CategoryIcon.IC_DOLLY_SOLID.iconName,
183184
createdAtMillis = seedTimestamp,
184185
),
185186
DefaultCategory(
186187
name = "Software",
187188
type = TransactionType.OUTCOME,
188-
iconName = "ic_file_code",
189+
iconName = CategoryIcon.IC_FILE_CODE.iconName,
189190
createdAtMillis = seedTimestamp,
190191
),
191192
DefaultCategory(
192193
name = "Sport",
193194
type = TransactionType.OUTCOME,
194-
iconName = "ic_basketball_ball_solid",
195+
iconName = CategoryIcon.IC_BASKETBALL_BALL_SOLID.iconName,
195196
createdAtMillis = seedTimestamp,
196197
),
197198
DefaultCategory(
198199
name = "Train",
199200
type = TransactionType.OUTCOME,
200-
iconName = "ic_train_solid",
201+
iconName = CategoryIcon.IC_TRAIN_SOLID.iconName,
201202
createdAtMillis = seedTimestamp,
202203
),
203204
DefaultCategory(
204205
name = "Transportation",
205206
type = TransactionType.OUTCOME,
206-
iconName = "ic_bus_solid",
207+
iconName = CategoryIcon.IC_BUS_SOLID.iconName,
207208
createdAtMillis = seedTimestamp,
208209
),
209210
DefaultCategory(
210211
name = "Travel",
211212
type = TransactionType.OUTCOME,
212-
iconName = "ic_globe_solid",
213+
iconName = CategoryIcon.IC_GLOBE_SOLID.iconName,
213214
createdAtMillis = seedTimestamp,
214215
),
215216
DefaultCategory(
216217
name = "Videogames",
217218
type = TransactionType.OUTCOME,
218-
iconName = "ic_gamepad_solid",
219+
iconName = CategoryIcon.IC_GAMEPAD_SOLID.iconName,
219220
createdAtMillis = seedTimestamp,
220221
),
221222
)

0 commit comments

Comments
 (0)