Feat(Home): Phone on app screen

This commit is contained in:
chip committed 2020-08-23 00:23:11 +02:00
1 parent 47e16573b0
commit ef944f2b45
2 files changed
+11 -2

No files matched your search

+10 -1
View File
@@ -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: <PhoneIcon />,
backgroundColor: green[400],
color: green[50],
path: '/phone'
},
{
id: 'contacts',
name: t('APPS_CONTACTS'),
+1 -1
View File
@@ -1,7 +1,7 @@
{
"translation": {
"COMING_SOON": "Coming soon...",
"APPS_PHONE": "Phone",
"APPS_CONTACTS": "Contacts",
"APPS_MESSAGES": "Messages",
"APPS_SETTINGS": "Settings",