Skip to content

Instantly share code, notes, and snippets.

@SebDuf
Last active July 18, 2019 19:15
Show Gist options
  • Save SebDuf/061fe76cef6f9f4cd8b94743f6e263f2 to your computer and use it in GitHub Desktop.
Save SebDuf/061fe76cef6f9f4cd8b94743f6e263f2 to your computer and use it in GitHub Desktop.
export function IncomingCalls({ calls }: Props) {
return (
<div>
<p>
Incoming Calls
</p>
{calls.length > 0 ?
<div data-testid="incoming-call-list">
{calls.map(call => <CallCard key={call.id} call={call} />)}
</React.Fragment>
:
<div data-testid="no-incoming-calls">
<p>
It's lonely out here
</p>
</div>
}
</div>
);
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment