file-tree-error.jsx 537 B

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