diff --git a/src/apps/contacts/components/ContactList.js b/src/apps/contacts/components/ContactList.js
index 2302b6e..aac2da0 100644
--- a/src/apps/contacts/components/ContactList.js
+++ b/src/apps/contacts/components/ContactList.js
@@ -1,11 +1,11 @@
import React from "react";
-import List from "@material-ui/core/List";
-import ListItem from "@material-ui/core/ListItem";
import ListItemText from "@material-ui/core/ListItemText";
import { Button } from "@material-ui/core";
import PhoneIcon from "@material-ui/icons/Phone";
import ChatIcon from "@material-ui/icons/Chat";
+import { List } from "../../../ui/components/List";
+import { ListItem } from "../../../ui/components/ListItem";
export const ContactList = ({ contacts, onCall, onMessage }) => {
return (
diff --git a/src/apps/phone/components/PhoneList.js b/src/apps/phone/components/PhoneList.js
index 9174500..aa0a192 100644
--- a/src/apps/phone/components/PhoneList.js
+++ b/src/apps/phone/components/PhoneList.js
@@ -1,24 +1,24 @@
-import React from 'react';
-import List from "@material-ui/core/List";
-import ListItem from "@material-ui/core/ListItem";
+import React from "react";
import ListItemText from "@material-ui/core/ListItemText";
-import PhoneCallbackIcon from '@material-ui/icons/PhoneCallback';
-import PhoneForwardedIcon from '@material-ui/icons/PhoneForwarded';
+import PhoneCallbackIcon from "@material-ui/icons/PhoneCallback";
+import PhoneForwardedIcon from "@material-ui/icons/PhoneForwarded";
+import { List } from "../../../ui/components/List";
+import { ListItem } from "../../../ui/components/ListItem";
+
+const CallTypeIcon = {
+ incoming: ,
+ outgoing: ,
+};
export const PhoneList = ({ calls }) => {
- const CallTypeIcon = {'incoming': , 'outgoing': }
-
- return (
-
- {calls.map((call) => (
-
-
- {CallTypeIcon[call.type]}
-
- ))}
-
- )
-}
\ No newline at end of file
+ return (
+
+ {calls.map((call) => (
+
+
+ {CallTypeIcon[call.type]}
+
+ ))}
+
+ );
+};
diff --git a/src/ui/components/ContextMenu.js b/src/ui/components/ContextMenu.js
index 57f25a7..a131371 100644
--- a/src/ui/components/ContextMenu.js
+++ b/src/ui/components/ContextMenu.js
@@ -1,13 +1,13 @@
import React from "react";
import {
- ListItem,
- List,
ListItemIcon,
ListItemText,
Slide,
makeStyles,
Paper,
} from "@material-ui/core";
+import { List } from "./List";
+import { ListItem } from "./ListItem";
const useStyles = makeStyles((theme) => ({
root: {
@@ -34,7 +34,7 @@ export const ContextMenu = ({ open, onClose, options }) => {
onClose();
}}
>
- {option.icon}
+ {option.icon && {option.icon}}
))}
diff --git a/src/ui/components/List.js b/src/ui/components/List.js
index 1a9d0df..27d2f92 100644
--- a/src/ui/components/List.js
+++ b/src/ui/components/List.js
@@ -1,11 +1,10 @@
-import React from 'react'
-import List from '@material-ui/core/List';
+import React from "react";
+import MaterialList from "@material-ui/core/List";
-export const PhoneList = (props) => {
-
- return (
-
- {props.children}
-
- )
-}
+export const List = ({ ...props }) => {
+ return (
+
+ {props.children}
+
+ );
+};
diff --git a/src/ui/components/ListItem.js b/src/ui/components/ListItem.js
new file mode 100644
index 0000000..2f9d5be
--- /dev/null
+++ b/src/ui/components/ListItem.js
@@ -0,0 +1,10 @@
+import React from "react";
+import MaterialListItem from "@material-ui/core/ListItem";
+
+export const ListItem = ({ ...props }) => {
+ return (
+
+ {props.children}
+
+ );
+};