diff --git a/phone/src/apps/contacts/components/ContactsApp.tsx b/phone/src/apps/contacts/components/ContactsApp.tsx index a9ad942..5ddca3e 100644 --- a/phone/src/apps/contacts/components/ContactsApp.tsx +++ b/phone/src/apps/contacts/components/ContactsApp.tsx @@ -1,38 +1,63 @@ -import React, { useState } from "react"; +import React from "react"; import { AppWrapper } from "../../../ui/components"; +import { makeStyles, createStyles, Theme } from "@material-ui/core/styles"; import { AppTitle } from "../../../ui/components/AppTitle"; import { AppContent } from "../../../ui/components/AppContent"; -import { ContactList } from "./ContactList"; +import { ContactList } from "./List/ContactList"; import { useApp } from "../../../os/apps/hooks/useApps"; -import AddCircleIcon from "@material-ui/icons/AddCircle"; import { AddContactModal } from "./ContactModal"; -import { Button } from "@material-ui/core"; +import { useModal } from '../hooks/useModal'; +import { SearchContacts } from "./List/SearchContacts"; +import { ContactTitle } from "./ContactTitle"; + +import './Contact.css'; + +import AddIcon from '@material-ui/icons/Add'; +import Fab from '@material-ui/core/Fab'; + + +const useStyles = makeStyles((theme: Theme) => + createStyles({ + backgroundModal: { + background: "black", + opacity: "0.6", + position: "absolute", + top: 0, + left: 0, + right: 0, + bottom: 0, + zIndex: 5, + }, + absolute: { + position: 'sticky', + bottom: theme.spacing(2), + left: theme.spacing(3), + }, + }) +); export const ContactsApp = () => { - const [modal, setModal] = useState(false); + + const classes = useStyles(); + const { showModal, setShowModal } = useModal(); const contacts = useApp("CONTACTS"); const openModal = () => { - setModal(true); + setShowModal(true); }; - const closeModal = () => { - setModal(false); - }; return ( - + - + + +
- + + + );