mirror of
https://github.com/darksaid98/new-phone-who-dis.git
synced 2026-12-04 22:16:40 +00:00
Notification bar
This commit is contained in:
1 parent
205dcabf12
commit
68fd91d4d0
17 files changed
+191
-27
No files matched your search
@@ -2,16 +2,17 @@ import React, { createContext, useEffect } from "react";
|
||||
import { useConfig } from "../../../config/hooks/useConfig";
|
||||
import ContactsIcon from "@material-ui/icons/Contacts";
|
||||
import { blue } from "@material-ui/core/colors";
|
||||
import { useTranslation } from "react-i18next";
|
||||
|
||||
const AppsContext = createContext(null);
|
||||
|
||||
export const useApps = () => {
|
||||
const [apps, setApps] = useConfig(AppsContext);
|
||||
|
||||
const { t } = useTranslation();
|
||||
useEffect(() => {
|
||||
setApps("preinstalled", [
|
||||
{
|
||||
name: "Contacts",
|
||||
name: t('APPS_CONTACTS'),
|
||||
icon: <ContactsIcon />,
|
||||
backgroundColor: blue[500],
|
||||
color: blue[50]
|
||||
@@ -28,6 +29,18 @@ export const useApps = () => {
|
||||
{
|
||||
name: "Contacts4",
|
||||
},
|
||||
{
|
||||
name: "Contacts4",
|
||||
},
|
||||
{
|
||||
name: "Contacts4",
|
||||
},
|
||||
{
|
||||
name: "Contacts4",
|
||||
},
|
||||
{
|
||||
name: "Contacts4",
|
||||
}
|
||||
]);
|
||||
// eslint-disable-next-line
|
||||
}, []);
|
||||
|
||||
Reference in new issue
Block a user