From b96e6e46cc3ef83c5b3eecce7622b3014b68cbee Mon Sep 17 00:00:00 2001 From: Thiago Zanluca Date: Fri, 8 Jul 2022 20:10:10 -0300 Subject: [PATCH] feat: new icons --- backend/enums/account.js | 20 ++++++++++++++++++++ frontend/src/icons/index.js | 8 ++++++++ 2 files changed, 28 insertions(+) diff --git a/backend/enums/account.js b/backend/enums/account.js index 9723ef4..70063d3 100644 --- a/backend/enums/account.js +++ b/backend/enums/account.js @@ -4,6 +4,7 @@ const ICON_MAPPER = { CAR: 'DirectionsCar', DEFAULT_CARD: 'CreditCard', DEFAULT_RECEIVED: 'ArrowDownward', + HOSPITAL: 'LocalHospital', HOUSE: 'House', JOYSTICK: 'SportsEsports', PENCIL: 'Create', @@ -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 = { @@ -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, } diff --git a/frontend/src/icons/index.js b/frontend/src/icons/index.js index f71577e..131f13c 100644 --- a/frontend/src/icons/index.js +++ b/frontend/src/icons/index.js @@ -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'; @@ -18,14 +22,18 @@ const icons = { Build, Create, CreditCard, + DinnerDining, DirectionsCar, House, KeyboardReturn, LocalGroceryStore, + LocalHospital, QrCode2, Savings, ShoppingBag, SportsEsports, + SportsTennis, + Workspaces, } export default icons \ No newline at end of file