styling: Enforced styling across all files (#55)

This commit is contained in:
Taso authored and GitHub committed 2021-01-12 21:31:03 -05:00
1 parent c9b3174505
commit 54daa42454
165 files changed
+1879 -1725

No files matched your search

@@ -1,3 +1,3 @@
#contact-app .Mui-focused::after {
border-bottom: #2196f3 solid 4px;
}
border-bottom: #2196f3 solid 4px;
}
@@ -5,10 +5,10 @@ const useStyles = makeStyles((theme) => ({
zIndex: 10,
position: 'absolute',
height: '100%',
width: '100%'
width: '100%',
},
modalHide: {
display: 'none'
display: 'none',
},
listContainer: {
marginTop: 30,
@@ -20,7 +20,7 @@ const useStyles = makeStyles((theme) => ({
margin: 'auto',
height: '125px',
width: '124px',
marginBottom: 29
marginBottom: 29,
},
input: {
marginBottom: 20,
@@ -28,7 +28,7 @@ const useStyles = makeStyles((theme) => ({
textAlign: 'center',
},
inputProps: {
fontSize: 22
fontSize: 22,
},
updateButton: {
background: '#2196f3',
@@ -36,14 +36,14 @@ const useStyles = makeStyles((theme) => ({
height: 45,
fontSize: 16,
marginTop: 29,
marginBottom: 29
marginBottom: 29,
},
deleteButton: {
background: '#d32f2f',
width: 150,
height: 40,
fontSize: 16
}
}))
fontSize: 16,
},
}));
export default useStyles;
export default useStyles;
@@ -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 };
}
};
+3 -3
View File
@@ -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(
+2 -2
View File
@@ -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);