Add error boundary to the project dashboard list

GitOrigin-RevId: 0f4cc3b4db62efe25ceeff202f305d08ddd73968
This commit is contained in:
Rebeka
2023-07-17 10:24:38 +00:00
committed by Copybot
parent 4388934a57
commit a412f3d70e
6 changed files with 89 additions and 9 deletions
@@ -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>
</>
)
}