-
Notifications
You must be signed in to change notification settings - Fork 52
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: support to show call logger status (#910)
* feat: support to show call loger status * fix: remove unused module * fix: call log sync event may not sent * misc: add detail error message * fix: unlogged filtered
- Loading branch information
Showing
5 changed files
with
84 additions
and
14 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,35 @@ | ||
import React from 'react'; | ||
|
||
import { RcText, styled } from '@ringcentral/juno'; | ||
|
||
const StyledText = styled(RcText)` | ||
margin-left: 8px; | ||
`; | ||
|
||
export function StatusMessage({ statusMatch }) { | ||
if (!statusMatch) { | ||
return null; | ||
} | ||
const { message, status } = statusMatch; | ||
if (!message) { | ||
return null; | ||
} | ||
let color: string | undefined = undefined; | ||
if (status === 'pending') { | ||
color = 'warning.f02'; | ||
} else if (status === 'failed') { | ||
color = 'danger.f02'; | ||
} else if (status === 'success') { | ||
color = 'success.f02'; | ||
} | ||
return ( | ||
<StyledText | ||
color={color} | ||
title={message} | ||
variant="caption1" | ||
component="span" | ||
> | ||
{message} | ||
</StyledText> | ||
); | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters