Feat(Messages): Base structure

This commit is contained in:
chip committed 2020-09-07 18:36:23 +02:00
1 parent d6b716b803
commit 39e6c5be2c
2 files changed
+36 -1

No files matched your search

@@ -0,0 +1,17 @@
import React from "react";
import { AppWrapper } from "../../../ui/components";
import { AppTitle } from "../../../ui/components/AppTitle";
import { AppContent } from "../../../ui/components/AppContent";
import { useApp } from "../../../os/apps/hooks/useApps";
export const MessagesApp = () => {
const messages = useApp("MESSAGES");
return (
<AppWrapper>
<AppTitle app={messages} />
<AppContent>
<h1>Fuck off</h1>
</AppContent>
</AppWrapper>
);
};
+19 -1
View File
@@ -1,10 +1,18 @@
import React from "react";
import { useConfig } from "../../../config/hooks/useConfig";
import { blue, grey, green, orange, purple } from "@material-ui/core/colors";
import {
blue,
grey,
green,
orange,
purple,
amber,
} from "@material-ui/core/colors";
import ContactsIcon from "@material-ui/icons/Contacts";
import SettingsIcon from "@material-ui/icons/Settings";
import PhoneIcon from "@material-ui/icons/Phone";
import AccountBalanceIcon from "@material-ui/icons/AccountBalance";
import MessageIcon from "@material-ui/icons/Message";
import { atom } from "recoil";
import { CalculatorIcon } from "../../../apps/calculator/components/CalculatorIcon";
import { Route } from "react-router-dom";
@@ -13,6 +21,7 @@ import { ContactsApp } from "../../../apps/contacts/components/ContactsApp";
import { CalculatorApp } from "../../../apps/calculator/components/CalculatorApp";
import { SettingsApp } from "../../../apps/settings/components/SettingsApp";
import { BankApp } from "../../../apps/bank/components/BankApp";
import { MessagesApp } from "../../../apps/messages/components/MessagesApp";
const appsState = atom({
key: "apps",
@@ -27,6 +36,15 @@ const appsState = atom({
path: "/phone",
Route: () => <Route path="/phone" component={DialerApp} />,
},
{
id: "MESSAGES",
nameLocale: "APPS_MESSAGES",
icon: <MessageIcon />,
backgroundColor: amber[400],
color: amber[50],
path: "/messages",
Route: () => <Route path="/messages" component={MessagesApp} />,
},
{
id: "CONTACTS",
nameLocale: "APPS_CONTACTS",