mirror of
https://github.com/darksaid98/new-phone-who-dis.git
synced 2026-12-04 14:38:45 +00:00
Feat(Contacts): Mapping contacts from DB
This commit is contained in:
1 parent
9e8442491b
commit
3a213ea308
9 files changed
+110
-83
No files matched your search
@@ -2,22 +2,16 @@ import React from "react";
|
||||
import { AppWrapper } from "../../../ui/components";
|
||||
import { AppTitle } from "../../../ui/components/AppTitle";
|
||||
import { AppContent } from "../../../ui/components/AppContent";
|
||||
import { useContacts } from "../hooks/useContacts";
|
||||
import { ContactList } from "./ContactList";
|
||||
import { useApp } from "../../../os/apps/hooks/useApps";
|
||||
|
||||
export const ContactsApp = () => {
|
||||
const { contactList } = useContacts();
|
||||
const contacts = useApp("CONTACTS");
|
||||
return (
|
||||
<AppWrapper>
|
||||
<AppTitle app={contacts} />
|
||||
<AppContent>
|
||||
<ContactList
|
||||
contacts={contactList}
|
||||
onCall={(contact) => console.log(contact)}
|
||||
onMessage={() => console.log("Opening messages")}
|
||||
/>
|
||||
<ContactList />
|
||||
</AppContent>
|
||||
</AppWrapper>
|
||||
);
|
||||
|
||||
Reference in new issue
Block a user