Merge branch 'main' of github.com:daily-demos/examples into dailyjs/text-chat

This commit is contained in:
J Taylor 2021-06-22 12:39:00 +01:00
commit 9b79d2a510
2 changed files with 9 additions and 2 deletions

View File

@ -26,6 +26,7 @@ export const CardHeader = ({ children }) => (
h2 {
font-size: 1.375rem;
margin: 0px;
color: var(--text-default);
}
& + :global(.card-body) {

View File

@ -74,8 +74,14 @@ export const useCallUI = ({
}
return (
<MessageCard error header="An error occured">
An unknown error has occured in the call loop. This should not happen!
<MessageCard
error
header="An unknown error occured"
onBack={() => window.location.reload()}
>
A fatal error occured in the call loop. Please check you have entered a
valid <code>DAILY_DOMAIN</code> and <code>DAILY_API_KEY</code>{' '}
environmental variables.
</MessageCard>
);
}, [