mirror of
https://github.com/darksaid98/new-phone-who-dis.git
synced 2026-12-04 22:16:40 +00:00
Feat(Home): Phone on app screen
This commit is contained in:
1 parent
47e16573b0
commit
ef944f2b45
2 files changed
+11
-2
No files matched your search
@@ -1,9 +1,10 @@
|
|||||||
import React, { useEffect } from "react";
|
import React, { useEffect } from "react";
|
||||||
import { useConfig } from "../../../config/hooks/useConfig";
|
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 { useTranslation } from "react-i18next";
|
||||||
import ContactsIcon from "@material-ui/icons/Contacts";
|
import ContactsIcon from "@material-ui/icons/Contacts";
|
||||||
import SettingsIcon from '@material-ui/icons/Settings'
|
import SettingsIcon from '@material-ui/icons/Settings'
|
||||||
|
import PhoneIcon from '@material-ui/icons/Phone';
|
||||||
import { atom } from "recoil";
|
import { atom } from "recoil";
|
||||||
|
|
||||||
const appsState = atom({
|
const appsState = atom({
|
||||||
@@ -16,6 +17,14 @@ export const useApps = () => {
|
|||||||
const { t } = useTranslation();
|
const { t } = useTranslation();
|
||||||
useEffect(() => {
|
useEffect(() => {
|
||||||
setApps("preinstalled", [
|
setApps("preinstalled", [
|
||||||
|
{
|
||||||
|
id: 'phone',
|
||||||
|
name: t('APPS_PHONE'),
|
||||||
|
icon: <PhoneIcon />,
|
||||||
|
backgroundColor: green[400],
|
||||||
|
color: green[50],
|
||||||
|
path: '/phone'
|
||||||
|
},
|
||||||
{
|
{
|
||||||
id: 'contacts',
|
id: 'contacts',
|
||||||
name: t('APPS_CONTACTS'),
|
name: t('APPS_CONTACTS'),
|
||||||
|
|||||||
+1
-1
@@ -1,7 +1,7 @@
|
|||||||
{
|
{
|
||||||
"translation": {
|
"translation": {
|
||||||
"COMING_SOON": "Coming soon...",
|
"COMING_SOON": "Coming soon...",
|
||||||
|
"APPS_PHONE": "Phone",
|
||||||
"APPS_CONTACTS": "Contacts",
|
"APPS_CONTACTS": "Contacts",
|
||||||
"APPS_MESSAGES": "Messages",
|
"APPS_MESSAGES": "Messages",
|
||||||
"APPS_SETTINGS": "Settings",
|
"APPS_SETTINGS": "Settings",
|
||||||
|
|||||||
Reference in new issue
Block a user