Notification bar

This commit is contained in:
J Francisco Rader committed 2020-08-22 05:19:35 -03:00
1 parent 205dcabf12
commit 68fd91d4d0
17 files changed
+191 -27

No files matched your search

+15 -2
View File
@@ -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
}, []);