From ef944f2b4570e9382873d3eda52a6f621d4417f2 Mon Sep 17 00:00:00 2001 From: chip Date: Sun, 23 Aug 2020 00:23:11 +0200 Subject: [PATCH] Feat(Home): Phone on app screen --- src/apps/appmarket/hooks/useApps.js | 11 ++++++++++- src/locale/en.json | 2 +- 2 files changed, 11 insertions(+), 2 deletions(-) diff --git a/src/apps/appmarket/hooks/useApps.js b/src/apps/appmarket/hooks/useApps.js index 31256c1..630e52a 100644 --- a/src/apps/appmarket/hooks/useApps.js +++ b/src/apps/appmarket/hooks/useApps.js @@ -1,9 +1,10 @@ import React, { useEffect } from "react"; import { useConfig } from "../../../config/hooks/useConfig"; -import { blue, grey } from "@material-ui/core/colors"; +import { blue, grey, green } from "@material-ui/core/colors"; import { useTranslation } from "react-i18next"; import ContactsIcon from "@material-ui/icons/Contacts"; import SettingsIcon from '@material-ui/icons/Settings' +import PhoneIcon from '@material-ui/icons/Phone'; import { atom } from "recoil"; const appsState = atom({ @@ -16,6 +17,14 @@ export const useApps = () => { const { t } = useTranslation(); useEffect(() => { setApps("preinstalled", [ + { + id: 'phone', + name: t('APPS_PHONE'), + icon: , + backgroundColor: green[400], + color: green[50], + path: '/phone' + }, { id: 'contacts', name: t('APPS_CONTACTS'), diff --git a/src/locale/en.json b/src/locale/en.json index be85204..69da9f8 100644 --- a/src/locale/en.json +++ b/src/locale/en.json @@ -1,7 +1,7 @@ { "translation": { "COMING_SOON": "Coming soon...", - + "APPS_PHONE": "Phone", "APPS_CONTACTS": "Contacts", "APPS_MESSAGES": "Messages", "APPS_SETTINGS": "Settings",