master: change repo
This commit is contained in:
59
src/enums/TransactionTag.ts
Normal file
59
src/enums/TransactionTag.ts
Normal file
@@ -0,0 +1,59 @@
|
||||
enum TransactionTag {
|
||||
None = 'none',
|
||||
Tourism = 'tourism',
|
||||
Food = 'food',
|
||||
Transport = 'transport',
|
||||
Housing = 'housing',
|
||||
Shopping = 'shopping',
|
||||
Gift = 'gift',
|
||||
Entertainment = 'entertainment',
|
||||
Tax = 'tax'
|
||||
}
|
||||
|
||||
export default TransactionTag
|
||||
|
||||
export interface ITagLabel {
|
||||
label: string
|
||||
icon: string
|
||||
}
|
||||
interface ITagAllLabel {
|
||||
[key: string]: ITagLabel
|
||||
}
|
||||
export const TransactionTagLabel: ITagAllLabel = {
|
||||
[TransactionTag.None]: {
|
||||
label: 'Aucune',
|
||||
icon: 'circle'
|
||||
},
|
||||
[TransactionTag.Tourism]: {
|
||||
label: 'Tourisme',
|
||||
icon: 'torii-gate'
|
||||
},
|
||||
[TransactionTag.Food]: {
|
||||
label: 'Restaurant',
|
||||
icon: 'utensils'
|
||||
},
|
||||
[TransactionTag.Transport]: {
|
||||
label: 'Transport',
|
||||
icon: 'subway'
|
||||
},
|
||||
[TransactionTag.Housing]: {
|
||||
label: 'Logement',
|
||||
icon: 'home'
|
||||
},
|
||||
[TransactionTag.Shopping]: {
|
||||
label: 'Courses',
|
||||
icon: 'shopping-basket'
|
||||
},
|
||||
[TransactionTag.Gift]: {
|
||||
label: 'Cadeau',
|
||||
icon: 'gift'
|
||||
},
|
||||
[TransactionTag.Entertainment]: {
|
||||
label: 'Divertissement',
|
||||
icon: 'theater-masks'
|
||||
},
|
||||
[TransactionTag.Tax]: {
|
||||
label: 'Impôt',
|
||||
icon: 'hand-holding-usd'
|
||||
}
|
||||
}
|
||||
6
src/enums/TransactionType.ts
Normal file
6
src/enums/TransactionType.ts
Normal file
@@ -0,0 +1,6 @@
|
||||
enum TransactionType {
|
||||
normal,
|
||||
refund
|
||||
}
|
||||
|
||||
export default TransactionType
|
||||
Reference in New Issue
Block a user