mirror of
https://github.com/darksaid98/new-phone-who-dis.git
synced 2026-12-04 14:38:45 +00:00
feat(phone/messages): minor changes for nui
This commit is contained in:
1 parent
09d397b6cf
commit
4d82c8e69a
3 files changed
+4
-5
No files matched your search
@@ -3,7 +3,6 @@ import { AppWrapper } from '../../../ui/components';
|
||||
import { AppTitle } from '../../../ui/components/AppTitle';
|
||||
import { AppContent } from '../../../ui/components/AppContent';
|
||||
import { useApp } from '../../../os/apps/hooks/useApps';
|
||||
import AlertBar from './AlertBar';
|
||||
import MessageGroupModal from './modal/MessageGroupModal';
|
||||
import MessagesList from './list/MessagesList';
|
||||
import { Route, Switch, useHistory } from 'react-router-dom';
|
||||
@@ -50,7 +49,6 @@ export const MessagesApp = () => {
|
||||
</Switch>
|
||||
</AppContent>
|
||||
<NewMessageGroupButton onClick={() => history.push('/messages/new')} />
|
||||
<AlertBar />
|
||||
</AppWrapper>
|
||||
</MessagesThemeProvider>
|
||||
);
|
||||
|
||||
@@ -9,7 +9,7 @@ export const useMessagesService = () => {
|
||||
const setCreateMessageGroupResult = useSetRecoilState(
|
||||
messageState.createMessageGroupResult
|
||||
);
|
||||
const { addAlert } = useSnackbar()
|
||||
const { addAlert } = useSnackbar();
|
||||
|
||||
useNuiEvent('MESSAGES', 'phone:fetchMessageGroupsSuccess', setMessageGroups);
|
||||
useNuiEvent('MESSAGES', 'phone:fetchMessagesSuccess', setMessages);
|
||||
@@ -23,5 +23,5 @@ export const useMessagesService = () => {
|
||||
'phone:createMessageGroupFailed',
|
||||
setCreateMessageGroupResult
|
||||
);
|
||||
useNuiEvent('MESSAGES', 'setAlert', addAlert);
|
||||
useNuiEvent('MESSAGES', 'phone:setMessagesAlert', addAlert);
|
||||
};
|
||||
Reference in new issue
Block a user