file-tree-error.js 468 B

12345678910111213141516171819202122
  1. import { Button } from 'react-bootstrap'
  2. import { useTranslation } from 'react-i18next'
  3. function FileTreeError() {
  4. const { t } = useTranslation()
  5. function reload() {
  6. location.reload()
  7. }
  8. return (
  9. <div className="file-tree-error">
  10. <p>{t('generic_something_went_wrong')}</p>
  11. <p>{t('please_refresh')}</p>
  12. <Button bsStyle="primary" onClick={reload}>
  13. {t('refresh')}
  14. </Button>
  15. </div>
  16. )
  17. }
  18. export default FileTreeError