mirror of
https://github.com/darksaid98/new-phone-who-dis.git
synced 2026-12-04 22:16:40 +00:00
Feat(Messages): Base structure
This commit is contained in:
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>
|
||||||
|
);
|
||||||
|
};
|
||||||
@@ -1,10 +1,18 @@
|
|||||||
import React from "react";
|
import React from "react";
|
||||||
import { useConfig } from "../../../config/hooks/useConfig";
|
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 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 PhoneIcon from "@material-ui/icons/Phone";
|
||||||
import AccountBalanceIcon from "@material-ui/icons/AccountBalance";
|
import AccountBalanceIcon from "@material-ui/icons/AccountBalance";
|
||||||
|
import MessageIcon from "@material-ui/icons/Message";
|
||||||
import { atom } from "recoil";
|
import { atom } from "recoil";
|
||||||
import { CalculatorIcon } from "../../../apps/calculator/components/CalculatorIcon";
|
import { CalculatorIcon } from "../../../apps/calculator/components/CalculatorIcon";
|
||||||
import { Route } from "react-router-dom";
|
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 { CalculatorApp } from "../../../apps/calculator/components/CalculatorApp";
|
||||||
import { SettingsApp } from "../../../apps/settings/components/SettingsApp";
|
import { SettingsApp } from "../../../apps/settings/components/SettingsApp";
|
||||||
import { BankApp } from "../../../apps/bank/components/BankApp";
|
import { BankApp } from "../../../apps/bank/components/BankApp";
|
||||||
|
import { MessagesApp } from "../../../apps/messages/components/MessagesApp";
|
||||||
|
|
||||||
const appsState = atom({
|
const appsState = atom({
|
||||||
key: "apps",
|
key: "apps",
|
||||||
@@ -27,6 +36,15 @@ const appsState = atom({
|
|||||||
path: "/phone",
|
path: "/phone",
|
||||||
Route: () => <Route path="/phone" component={DialerApp} />,
|
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",
|
id: "CONTACTS",
|
||||||
nameLocale: "APPS_CONTACTS",
|
nameLocale: "APPS_CONTACTS",
|
||||||
|
|||||||
Reference in new issue
Block a user