Commit Graph
20 Commits
Author SHA1 Message Date
Taso b5fca6b35b cleanup: Recoil State Type Safety + Misc Cleanup (#189)
* chore(phone/settings): Removed unused state

* cleanup(phone/photos): Added type safety to photo state

* tweak(phone/marketplace): Added type safety to marketplace state

* chore(phone/match): Removed unnecessary console.log

* tweak(phone/messages): Added type safety to messages state

Also fixed ESLint warning for exported anonymous hook in useMessages.ts

* tweak(phone/match): Added type safety to match state

* tweak(phone/dialer): Cleanup & type safety for state

Renamed some types to better represent their data

* cleanup(phone/gen): Added NUI event enums for phone events

* tweak(phone/contacts): Type safety for contacts state & variable rename

Renamed and type variable in setFilteredContacts to better represent its use

* tweak(phone/gen-state): Added type-safety to gen phone global state

* tweak(phone/settings): Type safety for settings state

* tweak(phone/photos): Tweaked type for photo referral

* fix(phone/notification-comp): Fix reference to old theme config

* chore(phone/hooks): Remove keyboard service

Removed as this was unused and ESLint was not happy with it

* chore(phone): Cleaned up eslint warnings

No more warnings hooray!

* tweak(phone): Set time in dev mode

* fix(phone): Remove useNuiService that appeared somehow

* fix(phone/gallery): Fixed missing import for gallery

* Revert removing the keyboard service as this is built upon in another PR

This reverts commit 82d12255a84e918da087d988b599af98ce1fe54d.

* fix(phone/keyboard): Add useKeyboardService hook back to Phone.tsx

* fix(phone/gallery): Fix and standardized GalleryPhoto type
2021-04-11 10:01:38 -04:00
J Francisco Rader 8e79eb1345 Make use of library instead of having code duplicated (#201)
* Use fivem-nui-react-lib
2021-04-07 19:07:10 -03:00
Christopher 2cd3e9e93d update dial events 2021-03-25 11:31:05 +01:00
Taso f1f6a05981 tweak(dialer): Several fixes and improvements
Time has been changed to a relative format. Locale specifics are pending
merge of #168.

Several typos have been fixed where "DAILER" was referenced instead of
"DIALER"

A translation key was added for when a user has no call history.

The input box has been unlocked so users can use their keyboard directly
rather than using the dial pad.
2021-03-17 10:26:52 -04:00
Taso f0c5e5101e chore(typings): Moved common typings to root dir 2021-03-14 15:19:30 -04:00
Christopher d4fbdc8e0c feat(phone/dialer): add contacts from dialer history 2021-02-23 23:19:29 +01:00
J Francisco Rader 4acb214ec9 Task/improve hardcoded styles and types (#107)
* Add working notifications with only twitter for now

* feat(notification-bar): I didnt copy from NP

* feat(notifications): Collapse when no more notifications after closing one

* Improve overall messages styling code

* Improve Routing performance

* improve use keyboard hook

* Remove unused returns

* Button hover color :)

* Button hover color :) x2

* Added hover style to containedPrimary msg btn

* Replace custom components for custom theme providers for Messages and Contacts apps

* Improve createAppThemeProvider

* Improve createAppThemeProvider

* Final housekeeping for messages styles

* Change placeholder to label in Contacts app text fields

* Fix alerts style with navigation and fix calc copy alerrt

* Split Phone code for snackbar

* Add more options and style Context Menu

* Enable Sellout theme provider and make it work with light themes
2021-02-21 12:41:25 -05:00
Christopher 5c3f4366ec fix(calling/state): fix state keys 2021-02-02 23:56:14 +01:00
itschip 3063da94b2 Prettified Code! 2021-01-31 20:50:18 +00:00
Christopher f4b77d9f51 fix(Dial/nui): rename functions 2021-01-31 21:49:11 +01:00
Christopher c7b185014d feat(calling/dial): update interfaces 2021-01-31 21:44:24 +01:00
Christopher 04afb24bda fix(dial/hooks): rename 2021-01-31 21:43:04 +01:00
Christopher 601450e579 feat(dailer/history): showing timestamps in recent calls 2021-01-31 02:47:38 +01:00
itschip 26a4c1c31a Prettified Code! 2021-01-29 18:57:12 +00:00
Christopher 9895ea2089 tweak(calling/server|client): more history and calling 2021-01-29 19:56:00 +01:00
Christopher 89ea248d32 feat(contacts/nui | calling/client|server): getName | close modal on add | show dail history 2021-01-29 19:53:14 +01:00
Taso 54daa42454 styling: Enforced styling across all files (#55) 2021-01-12 21:31:03 -05:00
chip e1a24a32f4 removed a name we all hate 2020-11-01 22:49:26 +01:00
erik-sn cff746aa38 working typescript version 2020-10-07 12:19:55 -04:00
J Francisco Rader b2e0cba844 Add phone service, rename phone app to dialer, etc improvements 2020-08-25 21:13:01 -03:00