mirror of
https://github.com/darksaid98/new-phone-who-dis.git
synced 2026-12-04 22:16:40 +00:00
fix(contacts/nui): interface for useContacts
This commit is contained in:
1 parent
c7f6a72180
commit
a7100f16a9
2 files changed
+10
-7
No files matched your search
@@ -1,15 +1,11 @@
|
|||||||
import { useRecoilValue } from "recoil";
|
import { useRecoilValue } from "recoil";
|
||||||
import { contactsState } from "./state";
|
import { contactsState } from "./state";
|
||||||
|
|
||||||
interface Contact {
|
import { ContactProps } from '../../../common/typings/contact';
|
||||||
id: string;
|
|
||||||
display: string;
|
|
||||||
number: string;
|
|
||||||
avatar?: string
|
|
||||||
}
|
|
||||||
|
|
||||||
interface IUseContacts {
|
interface IUseContacts {
|
||||||
contacts: Contact[];
|
contacts: ContactProps[]
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
export const useContacts = (): IUseContacts => {
|
export const useContacts = (): IUseContacts => {
|
||||||
|
|||||||
@@ -10,3 +10,10 @@ export interface IContactAlert {
|
|||||||
alert: AlertCategory;
|
alert: AlertCategory;
|
||||||
setAlert: (type: string) => void;
|
setAlert: (type: string) => void;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
export interface ContactProps {
|
||||||
|
id: string;
|
||||||
|
display: string;
|
||||||
|
number: string;
|
||||||
|
avatar?: string
|
||||||
|
}
|
||||||
Reference in new issue
Block a user