mirror of
https://github.com/darksaid98/new-phone-who-dis.git
synced 2026-12-04 06:28:51 +00:00
Make styling!!
This commit is contained in:
1 parent
0bbd463c01
commit
bc20bfac99
13 files changed
+115
-114
No files matched your search
@@ -1,5 +1,4 @@
|
||||
import React from "react";
|
||||
import { makeStyles } from "@material-ui/core/styles";
|
||||
import List from "@material-ui/core/List";
|
||||
import ListItem from "@material-ui/core/ListItem";
|
||||
import ListItemText from "@material-ui/core/ListItemText";
|
||||
@@ -8,31 +7,19 @@ import { Button } from "@material-ui/core";
|
||||
import PhoneIcon from "@material-ui/icons/Phone";
|
||||
import ChatIcon from "@material-ui/icons/Chat";
|
||||
|
||||
const useStyles = makeStyles((theme) => ({
|
||||
root: {
|
||||
width: "100%",
|
||||
maxWidth: 360,
|
||||
color: "#fff",
|
||||
},
|
||||
listItem: {
|
||||
color: "#fff",
|
||||
},
|
||||
}));
|
||||
|
||||
export const ContactList = ({ contacts, onCall, onMessage }) => {
|
||||
const classes = useStyles();
|
||||
return (
|
||||
<List component="nav" className={classes.root}>
|
||||
<List>
|
||||
{contacts.map((contact) => (
|
||||
<ListItem divider className={classes.listItem}>
|
||||
<ListItem key={contact.id} divider>
|
||||
<ListItemText
|
||||
primary={contact.display}
|
||||
secondary={contact.phoneNumber}
|
||||
/>
|
||||
<Button className={classes.listItem} onClick={onCall}>
|
||||
<Button onClick={onCall}>
|
||||
<PhoneIcon />
|
||||
</Button>
|
||||
<Button className={classes.listItem} onClick={onMessage}>
|
||||
<Button onClick={onMessage}>
|
||||
<ChatIcon />
|
||||
</Button>
|
||||
</ListItem>
|
||||
|
||||
Reference in new issue
Block a user