I really hope I didnt fuck anything up now

This commit is contained in:
chip committed 2020-08-23 20:08:08 +02:00
1 parent ad20755608
commit ec37fcde46
67 files changed

No files matched your search

@@ -0,0 +1,28 @@
import React from "react";
import { AppWrapper } from "../../../ui/components";
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";
import { useApps } from "../../appmarket/hooks/useApps";
export const ContactsApp = () => {
const { contactList } = useContacts();
const { getApp } = useApps();
const { t } = useTranslation();
return (
<AppWrapper>
<AppTitle color={getApp("contacts").backgroundColor}>
{t("APPS_CONTACTS")}
</AppTitle>
<AppContent>
<ContactList
contacts={contactList}
onCall={(contact => console.log(contact))}
onMessage={() => console.log("Opening messages")}
/>
</AppContent>
</AppWrapper>
);
};