2020-11-26 09:22:30 -05:00
|
|
|
import { Button } from 'react-bootstrap'
|
|
|
|
import { useTranslation } from 'react-i18next'
|
2023-03-16 08:32:48 -04:00
|
|
|
import { useLocation } from '../../../shared/hooks/use-location'
|
2020-11-26 09:22:30 -05:00
|
|
|
|
|
|
|
function FileTreeError() {
|
|
|
|
const { t } = useTranslation()
|
2023-03-16 08:32:48 -04:00
|
|
|
const { reload: handleClick } = useLocation()
|
2020-11-26 09:22:30 -05:00
|
|
|
|
|
|
|
return (
|
|
|
|
<div className="file-tree-error">
|
|
|
|
<p>{t('generic_something_went_wrong')}</p>
|
|
|
|
<p>{t('please_refresh')}</p>
|
2023-03-16 08:32:48 -04:00
|
|
|
<Button bsStyle="primary" onClick={handleClick}>
|
2020-11-26 09:22:30 -05:00
|
|
|
{t('refresh')}
|
|
|
|
</Button>
|
|
|
|
</div>
|
|
|
|
)
|
|
|
|
}
|
|
|
|
|
|
|
|
export default FileTreeError
|