mirror of
https://github.com/yu-i-i/overleaf-cep.git
synced 2026-11-14 22:23:42 +01:00
Add error boundary to the project dashboard list
GitOrigin-RevId: 0f4cc3b4db62efe25ceeff202f305d08ddd73968
This commit is contained in:
@@ -0,0 +1,17 @@
|
||||
import { useTranslation } from 'react-i18next'
|
||||
|
||||
type DefaultMessageProps = {
|
||||
className?: string
|
||||
style?: React.CSSProperties
|
||||
}
|
||||
|
||||
export function DefaultMessage({ className, style }: DefaultMessageProps) {
|
||||
const { t } = useTranslation()
|
||||
|
||||
return (
|
||||
<>
|
||||
<span style={style}>{`${t('generic_something_went_wrong')}. `}</span>
|
||||
<span className={className}>{`${t('please_refresh')}`}</span>
|
||||
</>
|
||||
)
|
||||
}
|
||||
Reference in New Issue
Block a user