From 03e52dca7fb78977a971f2d95b164688a587a409 Mon Sep 17 00:00:00 2001 From: chip Date: Fri, 16 Oct 2020 20:18:35 +0200 Subject: [PATCH] Feat(Contact:Modal): New layout | Adding Avatar --- .../apps/contacts/components/ContactModal.tsx | 28 ++++++++++++++----- 1 file changed, 21 insertions(+), 7 deletions(-) diff --git a/phone/src/apps/contacts/components/ContactModal.tsx b/phone/src/apps/contacts/components/ContactModal.tsx index 506ee2c..e4391dd 100644 --- a/phone/src/apps/contacts/components/ContactModal.tsx +++ b/phone/src/apps/contacts/components/ContactModal.tsx @@ -6,8 +6,11 @@ import List from "@material-ui/core/List"; import ListItem from "@material-ui/core/ListItem"; import Modal from '../../../ui/components/Modal'; import { useModal } from '../hooks/useModal'; +import ClearIcon from '@material-ui/icons/Clear'; +import PersonIcon from '@material-ui/icons/Person'; +import PhoneIcon from '@material-ui/icons/Phone'; +import AccountCircleIcon from '@material-ui/icons/AccountCircle'; -import '../components/Contact.css' const useStyles = makeStyles((theme: Theme) => ({ button: { @@ -22,12 +25,18 @@ const useStyles = makeStyles((theme: Theme) => ({ marginLeft: "-4em", height: "20%", }, + clearButton: { + width: '10%', + position: 'absolute', + right: 0 + }, textInputField: { fontSize: 20, borderBottomColor: 'red' }, addBtn: { margin: 'auto', + fontSize: 16, width: 150, background: "#2196f3", marginBottom: 10, @@ -39,6 +48,9 @@ const useStyles = makeStyles((theme: Theme) => ({ background: "#232323", marginBottom: 20, padding: 8 + }, + icons: { + marginRight: 5 } })); @@ -69,43 +81,45 @@ export const AddContactModal = () => { return ( - + + + setName(e.target.value)} - style={{ fontSize: "18px" }} fullWidth - variant="outlined" + variant="standard" placeholder="Name" /> + setNumber(e.target.value)} fullWidth placeholder="Number" - variant="outlined" + variant="standard" type="number" /> + setAvatar(e.target.value)} fullWidth - placeholder="Picture link" + placeholder="Avatar URL" variant="standard" type="text" /> - ); };