tweak(phone): Rename PhoneContainer

This commit is contained in:
Taso committed 2021-04-19 13:15:33 -04:00
1 parent 8861f4e503
commit ec4ebdc54d
3 files changed
+5 -5

No files matched your search

+25
View File
@@ -0,0 +1,25 @@
import React from 'react';
import { ThemeProvider } from '@material-ui/core';
import { NotificationsProvider } from './os/notifications/providers/NotificationsProvider';
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 PhoneProviders = () => {
const currentTheme = usePhoneTheme();
return (
<NuiProvider resource="new-phone-who-dis">
<ThemeProvider theme={currentTheme}>
<SoundProvider>
<NotificationsProvider>
<SnackbarProvider>
<Phone />
</SnackbarProvider>
</NotificationsProvider>
</SoundProvider>
</ThemeProvider>
</NuiProvider>
);
};