project-error / npwd

NPWD is a FiveM phone resource written entirely in TypeScript and React.
https://projecterror.dev
Other
338 stars 277 forks source link

Notifications: Add sound option to generic useNotification hook and code cleanup #1023

Open BackSH00TER opened 1 year ago

BackSH00TER commented 1 year ago

Pull Request Description Problem: When a user receives a notification, the alert does not play a sound effect.

I found that each app had its own implementation of a useAppNameNotification hook (ex: useMessageNotifications), that did have a sound option built in. I followed up with Chip in discord and he confirmed these hooks were from a previous older notification system and that they moved to a more generic approach using a single useNotification hook.

As such this PR does two things:

Pull Request Checklist: