mirror of
https://github.com/darksaid98/new-phone-who-dis.git
synced 2026-12-04 22:16:40 +00:00
mad formatting
This commit is contained in:
1 parent
6777498bcc
commit
046447b0fb
74 files changed
+329
-309
No files matched your search
@@ -1,11 +1,7 @@
|
||||
import React from 'react';
|
||||
import { InputBase } from '@material-ui/core';
|
||||
import SearchIcon from '@material-ui/icons/Search';
|
||||
import {
|
||||
createStyles,
|
||||
Theme,
|
||||
makeStyles,
|
||||
} from '@material-ui/core/styles';
|
||||
import { createStyles, Theme, makeStyles } from '@material-ui/core/styles';
|
||||
|
||||
import { useTranslation } from 'react-i18next';
|
||||
|
||||
|
||||
@@ -60,7 +60,9 @@ const ContactsInfoPage = () => {
|
||||
const { getContact } = useContacts();
|
||||
|
||||
const { id } = useParams<ContactInfoRouteParams>();
|
||||
const { addNumber, referal } = useQueryParams<ContactInfoRouteQuery>({ referal: '/contacts' });
|
||||
const { addNumber, referal } = useQueryParams<ContactInfoRouteQuery>({
|
||||
referal: '/contacts',
|
||||
});
|
||||
|
||||
const contact = getContact(parseInt(id));
|
||||
|
||||
|
||||
@@ -20,5 +20,5 @@ export const contactsState = {
|
||||
contactDetail: atom({
|
||||
key: 'contactDetail',
|
||||
default: null,
|
||||
})
|
||||
}),
|
||||
};
|
||||
@@ -6,8 +6,8 @@ import { useSnackbar } from '../../../ui/hooks/useSnackbar';
|
||||
|
||||
export const useContactsService = () => {
|
||||
const setContacts = useSetRecoilState(contactsState.contacts);
|
||||
const { addAlert } = useSnackbar()
|
||||
|
||||
const { addAlert } = useSnackbar();
|
||||
|
||||
useNuiEvent('CONTACTS', 'setContacts', setContacts);
|
||||
useNuiEvent('CONTACTS', 'setAlert', addAlert);
|
||||
return useContacts();
|
||||
|
||||
Reference in new issue
Block a user