From 1c5ff95087ac19e1a34cf281509ce2e19b93ddc9 Mon Sep 17 00:00:00 2001 From: Immanuel Onyeka Date: Sat, 23 Oct 2021 15:43:12 -0400 Subject: [PATCH] Correct comments --- public/favicon.ico | 3 +++ src/App.jsx | 1 + src/Call.jsx | 2 +- src/Feed.jsx | 9 +++------ 4 files changed, 8 insertions(+), 7 deletions(-) create mode 100644 public/favicon.ico diff --git a/public/favicon.ico b/public/favicon.ico new file mode 100644 index 0000000..9d2bbfe --- /dev/null +++ b/public/favicon.ico @@ -0,0 +1,3 @@ + + + diff --git a/src/App.jsx b/src/App.jsx index 99599db..19a3c74 100755 --- a/src/App.jsx +++ b/src/App.jsx @@ -20,6 +20,7 @@ function fetchEntry(id) { }) } +// The parent component used for main control of AJAX data const App = () => { const [recent, setRecent] = useState(true) const [entry, setEntry] = useState() diff --git a/src/Call.jsx b/src/Call.jsx index 7a2a110..88b8c21 100644 --- a/src/Call.jsx +++ b/src/Call.jsx @@ -55,7 +55,7 @@ function moveCall(call, update) { }) } -// Displays details of specific calls +// Displays details of a specific call function Call(props) { return (
diff --git a/src/Feed.jsx b/src/Feed.jsx index 1878eb9..27566b0 100644 --- a/src/Feed.jsx +++ b/src/Feed.jsx @@ -60,7 +60,7 @@ function Seperator(props) { return } -// The component used for retrieving, sorting, and rendering calls. +// The component used for sorting and rendering the call list. function Feed(props) { const stack = props.stack @@ -70,7 +70,6 @@ function Feed(props) { entries = stack.map((entry, index) => { // Check if current page matches entry type - if (entry.is_archived == props.recent) { return null } @@ -80,8 +79,7 @@ function Feed(props) { : 'fade-in-right'} key={entry.id}>

{entry.direction == 'inbound' ? entry.from : entry.to} - - +

{(new Date(entry.created_at).toLocaleDateString())} @@ -90,8 +88,7 @@ function Feed(props) { minute: '2-digit'}))} - {entry.call_type} - props.onSelect(entry)}> - + props.onSelect(entry)}/> )