You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
import{Refresh}from'@mui/icons-material';import{Alert,AlertTitle,IconButton,Stack,Tooltip,Typography,}from'@mui/material';import{Box}from'@mui/material';import{FAILURE_MESSAGES}from'@graasp/translations';import{useMessagesTranslation,usePlayerTranslation}from'@/config/i18n';constNetworkErrorAlert=()=>{const{t: messagesTranslations}=useMessagesTranslation();const{ t }=usePlayerTranslation();return(<Boxdisplay="flex"height="100vh"width="100%"justifyContent="center"margin="auto"alignItems="center"><Alertseverity="error"><AlertTitle>{messagesTranslations(FAILURE_MESSAGES.UNEXPECTED_ERROR)}</AlertTitle><Stackdirection="column"alignItems="center"><Typography>{t('There seems to be a problem joining the server. Please try again later',)}</Typography><Tooltiptitle="Reload"><span><IconButtononClick={()=>window.location.reload()}><Refresh/></IconButton></span></Tooltip></Stack></Alert></Box>);};exportdefaultNetworkErrorAlert;
And in
App.tsx
The text was updated successfully, but these errors were encountered: