Refactored Contacts to use Routes and not a Modal (#80)

The new route allows for other components to directly route to contacts/:id, where id is the contact id for a users given contacts. It also adds a getContact function accessible by the useConfig hook in case a contact needs to be retrieved using a contact id.
This commit is contained in:
Taso authored and GitHub committed 2021-02-09 09:59:54 -05:00
1 parent eaf27f37ef
commit c0509be2d1
14 files changed
+324 -453

No files matched your search

+4 -4
View File
@@ -11,9 +11,9 @@ export interface IContactAlert {
setAlert: (type: string) => void;
}
export interface ContactProps {
id: string;
export interface Contact {
id: number;
display: string;
number: string;
avatar?: string
}
avatar?: string;
}