mirror of
https://github.com/darksaid98/new-phone-who-dis.git
synced 2026-12-04 22:16:40 +00:00
Feat(Contacts): Mapping contacts from DB
This commit is contained in:
1 parent
9e8442491b
commit
3a213ea308
9 files changed
+110
-83
No files matched your search
@@ -5,8 +5,4 @@ export const phoneState = {
|
||||
key: "phoneVisibility",
|
||||
default: false,
|
||||
}),
|
||||
powerOff: atom({
|
||||
key: "phonePowerOff",
|
||||
default: true,
|
||||
}),
|
||||
};
|
||||
@@ -3,6 +3,5 @@ import { phoneState } from "./state";
|
||||
|
||||
export const usePhone = () => {
|
||||
const visibility = useRecoilValue(phoneState.visibility);
|
||||
const powerOff = useRecoilValue(phoneState.powerOff);
|
||||
return { visibility, powerOff };
|
||||
return { visibility };
|
||||
};
|
||||
@@ -5,8 +5,6 @@ import { usePhone } from "./usePhone";
|
||||
|
||||
export const usePhoneService = () => {
|
||||
const setVisibility = useSetRecoilState(phoneState.visibility);
|
||||
const setPowerOff = useSetRecoilState(phoneState.powerOff);
|
||||
useNuiEvent("PHONE", "setPowerOff", setPowerOff);
|
||||
useNuiEvent("PHONE", "setVisibility", setVisibility);
|
||||
return usePhone();
|
||||
};
|
||||
Reference in new issue
Block a user