Make use of library instead of having code duplicated (#201)

* Use fivem-nui-react-lib
This commit is contained in:
J Francisco Rader authored and GitHub committed 2021-04-07 19:07:10 -03:00
1 parent 0cf5bc2bc7
commit 8e79eb1345
60 files changed
+231 -347

No files matched your search

+12 -9
View File
@@ -4,19 +4,22 @@ import { NotificationsProvider } from './os/notifications/providers/Notification
import { usePhoneTheme } from './os/phone/hooks/usePhoneTheme';
import SnackbarProvider from './ui/providers/SnackbarProvider';
import Phone from './Phone';
import { NuiProvider } from 'fivem-nui-react-lib';
import { SoundProvider } from './os/sound/providers/SoundProvider';
export const PhoneContainer = () => {
const currentTheme = usePhoneTheme();
return (
<ThemeProvider theme={currentTheme}>
<SoundProvider>
<NotificationsProvider>
<SnackbarProvider>
<Phone />
</SnackbarProvider>
</NotificationsProvider>
</SoundProvider>
</ThemeProvider>
<NuiProvider resource="new-phone-who-dis">
<ThemeProvider theme={currentTheme}>
<SoundProvider>
<NotificationsProvider>
<SnackbarProvider>
<Phone />
</SnackbarProvider>
</NotificationsProvider>
</SoundProvider>
</ThemeProvider>
</NuiProvider>
);
};