Skip to content

Commit

Permalink
feat: new icons
Browse files Browse the repository at this point in the history
  • Loading branch information
Thiago Zanluca committed Jul 8, 2022
1 parent c49d4b2 commit b96e6e4
Show file tree
Hide file tree
Showing 2 changed files with 28 additions and 0 deletions.
20 changes: 20 additions & 0 deletions backend/enums/account.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ const ICON_MAPPER = {
CAR: 'DirectionsCar',
DEFAULT_CARD: 'CreditCard',
DEFAULT_RECEIVED: 'ArrowDownward',
HOSPITAL: 'LocalHospital',
HOUSE: 'House',
JOYSTICK: 'SportsEsports',
PENCIL: 'Create',
Expand All @@ -12,7 +13,10 @@ const ICON_MAPPER = {
SENT_TRANSFER: 'ArrowUpward',
ACCOUNT_CREDIT: 'KeyboardReturn',
SUPERMARKET: 'LocalGroceryStore',
TENNIS: 'SportsTennis',
TOOL: 'Build',
DISH: 'DinnerDining',
BALLS: 'Workspaces',
}

const TRANSACTION_MAPPER = {
Expand Down Expand Up @@ -83,6 +87,22 @@ const CATEGORY_MAPPER = {
secondary: 'Educação',
icon: ICON_MAPPER.PENCIL,
},
restaurante: {
secondary: 'Restaurante',
icon: ICON_MAPPER.DISH,
},
saúde: {
secondary: 'Saúde',
icon: ICON_MAPPER.HOSPITAL,
},
lazer: {
secondary: 'Lazer',
icon: ICON_MAPPER.TENNIS,
},
outros: {
secondary: 'Outros',
icon: ICON_MAPPER.BALLS,
},
"": {
icon: ICON_MAPPER.DEFAULT_CARD,
}
Expand Down
8 changes: 8 additions & 0 deletions frontend/src/icons/index.js
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
import Workspaces from '@mui/icons-material/Workspaces';
import SportsTennis from '@mui/icons-material/SportsTennis';
import LocalHospital from '@mui/icons-material/LocalHospital';
import DinnerDining from '@mui/icons-material/DinnerDining';
import ArrowDownward from '@mui/icons-material/ArrowDownward';
import ArrowUpward from '@mui/icons-material/ArrowUpward';
import Build from '@mui/icons-material/Build';
Expand All @@ -18,14 +22,18 @@ const icons = {
Build,
Create,
CreditCard,
DinnerDining,
DirectionsCar,
House,
KeyboardReturn,
LocalGroceryStore,
LocalHospital,
QrCode2,
Savings,
ShoppingBag,
SportsEsports,
SportsTennis,
Workspaces,
}

export default icons

0 comments on commit b96e6e4

Please sign in to comment.