From 00856fe87ae72fe13504e06ee7ec02a45a718627 Mon Sep 17 00:00:00 2001 From: chip Date: Sun, 23 Aug 2020 01:28:28 +0200 Subject: [PATCH] Feat(PhoneApp): PhoneList --- src/apps/phone/components/PhoneList.js | 24 ++++++++++++++++++++++++ 1 file changed, 24 insertions(+) create mode 100644 src/apps/phone/components/PhoneList.js diff --git a/src/apps/phone/components/PhoneList.js b/src/apps/phone/components/PhoneList.js new file mode 100644 index 0000000..9174500 --- /dev/null +++ b/src/apps/phone/components/PhoneList.js @@ -0,0 +1,24 @@ +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 PhoneCallbackIcon from '@material-ui/icons/PhoneCallback'; +import PhoneForwardedIcon from '@material-ui/icons/PhoneForwarded'; + +export const PhoneList = ({ calls }) => { + const CallTypeIcon = {'incoming': , 'outgoing': } + + return ( + + {calls.map((call) => ( + + + {CallTypeIcon[call.type]} + + ))} + + ) +} \ No newline at end of file