file-tree-error.js 494 B

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