diff --git a/src/apps/contacts/components/ContactList.js b/src/apps/contacts/components/ContactList.js new file mode 100644 index 0000000..9852de8 --- /dev/null +++ b/src/apps/contacts/components/ContactList.js @@ -0,0 +1,40 @@ +import React from 'react' +import { makeStyles } from '@material-ui/core/styles'; +import List from '@material-ui/core/List'; +import ListItem from '@material-ui/core/ListItem'; +import ListItemText from '@material-ui/core/ListItemText'; +import { useContacts } from "../hooks/useContacts"; +import { Button } from '@material-ui/core'; + +import PhoneIcon from '@material-ui/icons/Phone'; +import ChatIcon from '@material-ui/icons/Chat'; + + +const useStyles = makeStyles((theme) => ({ + root: { + width: '100%', + maxWidth: 360, + color: '#fff' + }, + listItem: { + color: '#fff' + } + })); + +export const ContactList = ({ children, onCall, onMessage }) => { + const classes = useStyles(); + const [contacts] = useContacts(); + return ( + <> + + {contacts.map((contact) => ( + + + + + + ))} + + + ) +} diff --git a/src/apps/contacts/components/Contacts.js b/src/apps/contacts/components/Contacts.js index c805257..edf2fd2 100644 --- a/src/apps/contacts/components/Contacts.js +++ b/src/apps/contacts/components/Contacts.js @@ -6,13 +6,16 @@ import { AppTitle } from "../../../ui/components/AppTitle"; import { AppContent } from "../../../ui/components/AppContent"; import { useTranslation } from "react-i18next"; import { useContacts } from "../hooks/useContacts"; +import { ContactList } from './ContactList'; + const useStyles = makeStyles(() => ({ root: { - backgroundColor: lightBlue[50], + backgroundColor: '#232323', }, title: { backgroundColor: lightBlue[300], + textAlign: 'center' }, })); @@ -23,7 +26,9 @@ export const ContactsApp = () => { return ( {t("APPS_CONTACTS")} - {t("COMING_SOON")} + + console.log("Calling")} onMessage={() => console.log("Opening messages")}/> + ); };