mirror of
https://github.com/darksaid98/new-phone-who-dis.git
synced 2026-12-04 14:38:45 +00:00
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:
14 files changed
+324
-453
No files matched your search
@@ -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;
|
||||
}
|
||||
Reference in new issue
Block a user