Created
December 20, 2020 15:09
-
-
Save adrianhajdin/d6622041e7c21cbc8991bf8638bb5314 to your computer and use it in GitHub Desktop.
Categories Constants
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
const incomeColors = ['#123123', '#154731', '#165f40', '#16784f', '#14915f', '#10ac6e', '#0bc77e', '#04e38d', '#00ff9d']; | |
const expenseColors = ['#b50d12', '#bf2f1f', '#c9452c', '#d3583a', '#dc6a48', '#e57c58', '#ee8d68', '#f79d79', '#ffae8a', '#cc474b', '#f55b5f']; | |
export const incomeCategories = [ | |
{ type: 'Business', amount: 0, color: incomeColors[0] }, | |
{ type: 'Investments', amount: 0, color: incomeColors[1] }, | |
{ type: 'Extra income', amount: 0, color: incomeColors[2] }, | |
{ type: 'Deposits', amount: 0, color: incomeColors[3] }, | |
{ type: 'Lottery', amount: 0, color: incomeColors[4] }, | |
{ type: 'Gifts', amount: 0, color: incomeColors[5] }, | |
{ type: 'Salary', amount: 0, color: incomeColors[6] }, | |
{ type: 'Savings', amount: 0, color: incomeColors[7] }, | |
{ type: 'Rental income', amount: 0, color: incomeColors[8] }, | |
]; | |
export const expenseCategories = [ | |
{ type: 'Bills', amount: 0, color: expenseColors[0] }, | |
{ type: 'Car', amount: 0, color: expenseColors[1] }, | |
{ type: 'Clothes', amount: 0, color: expenseColors[2] }, | |
{ type: 'Travel', amount: 0, color: expenseColors[3] }, | |
{ type: 'Food', amount: 0, color: expenseColors[4] }, | |
{ type: 'Shopping', amount: 0, color: expenseColors[5] }, | |
{ type: 'House', amount: 0, color: expenseColors[6] }, | |
{ type: 'Entertainment', amount: 0, color: expenseColors[7] }, | |
{ type: 'Phone', amount: 0, color: expenseColors[8] }, | |
{ type: 'Pets', amount: 0, color: expenseColors[9] }, | |
{ type: 'Other', amount: 0, color: expenseColors[10] }, | |
]; | |
export const resetCategories = () => { | |
incomeCategories.forEach((c) => c.amount = 0); | |
expenseCategories.forEach((c) => c.amount = 0); | |
}; |
You are amazing 🔥🔥🔥
Thank u
thanks ;)
Simply amazing. Thank you
A good person is you.
Thanks for this. Much appreciated. God bless you!
thank you so much
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Made my day!