mirror of
https://github.com/darksaid98/new-phone-who-dis.git
synced 2026-12-04 22:16:40 +00:00
styling: Enforced styling across all files (#55)
This commit is contained in:
165 files changed
+1879
-1725
No files matched your search
@@ -1,7 +1,9 @@
|
||||
import { useRecoilState } from 'recoil';
|
||||
import { contactsState } from './state';
|
||||
|
||||
|
||||
export const useContactDetail = (): any => {
|
||||
const [ contactDetail, setContactDetail ] = useRecoilState(contactsState.contactDetail);
|
||||
const [contactDetail, setContactDetail] = useRecoilState(
|
||||
contactsState.contactDetail
|
||||
);
|
||||
return { contactDetail, setContactDetail };
|
||||
}
|
||||
};
|
||||
@@ -2,6 +2,8 @@ import { useRecoilState } from 'recoil';
|
||||
import { contactsState } from './state';
|
||||
|
||||
export const useContactModal = () => {
|
||||
const [ showContactModal, setShowContactModal ] = useRecoilState(contactsState.showContactsModal);
|
||||
const [showContactModal, setShowContactModal] = useRecoilState(
|
||||
contactsState.showContactsModal
|
||||
);
|
||||
return { showContactModal, setShowContactModal };
|
||||
}
|
||||
};
|
||||
@@ -1,11 +1,11 @@
|
||||
import { useRecoilValue } from "recoil";
|
||||
import { contactsState } from "./state";
|
||||
import { useRecoilValue } from 'recoil';
|
||||
import { contactsState } from './state';
|
||||
|
||||
interface Contact {
|
||||
id: string;
|
||||
display: string;
|
||||
number: string;
|
||||
avatar?: string
|
||||
avatar?: string;
|
||||
}
|
||||
|
||||
interface IUseContacts {
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
import { useRecoilState } from "recoil";
|
||||
import { contactsState } from "./state";
|
||||
import { useRecoilState } from 'recoil';
|
||||
import { contactsState } from './state';
|
||||
|
||||
export const useFilteredContacts = () => {
|
||||
const [filteredContacts, setFilteredContacts] = useRecoilState(
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
import { useRecoilState } from "recoil";
|
||||
import { contactsState } from "./state";
|
||||
import { useRecoilState } from 'recoil';
|
||||
import { contactsState } from './state';
|
||||
|
||||
export const useModal = () => {
|
||||
const [showModal, setShowModal] = useRecoilState(contactsState.showModal);
|
||||
|
||||
Reference in new issue
Block a user