diff --git a/src/Contacts/Main.tsx b/src/Contacts/Main.tsx index 4ed5be2..23b2616 100644 --- a/src/Contacts/Main.tsx +++ b/src/Contacts/Main.tsx @@ -20,7 +20,7 @@ import LoadingIndicator from "../widgets/LoadingIndicator"; import ContactEdit from "./ContactEdit"; import PageNotFound from "../PageNotFound"; -import { CachedCollection, getItemNavigationUid, getDecryptCollectionsFunction, getDecryptItemsFunction } from "../Pim/helpers"; +import { CachedCollection, getItemNavigationUid, getDecryptCollectionsFunction, getDecryptItemsFunction, PimFab } from "../Pim/helpers"; const colType = "etebase.vcard"; @@ -133,6 +133,11 @@ export default function ContactsMain() { routeResolver.getRoute("pim.contacts._id", { itemUid: getItemNavigationUid(item) }) )} /> + history.push( + routeResolver.getRoute("pim.contacts.new") + )} + /> (_colType: string, par { max: 1 } ); } + +interface PimFabPropsType { + onClick: () => void; +} + +export function PimFab(props: PimFabPropsType) { + const style = { + floatingButton: { + margin: 0, + top: "auto", + right: 20, + bottom: 20, + left: "auto", + position: "fixed", + }, + }; + + return ( + + + + ); +}