[web] Update loading spinner in IDE for BS5 (#21970)

* Update `LoadingPane` with `LoadingSpinner`

* Remove unused file no-open-doc-pane.tsx

* Remove translation `open_a_file_on_the_left`

GitOrigin-RevId: 9045443de6aaf19b1d4bf82cd2be3ba91ee53bf1
This commit is contained in:
Antoine Clausse
2024-11-21 09:04:31 +00:00
committed by Copybot
parent 9e745ed7ae
commit 485bccebef
15 changed files with 9 additions and 33 deletions
@@ -1,15 +1,10 @@
import { FC } from 'react'
import { useTranslation } from 'react-i18next'
import LoadingSpinner from '@/shared/components/loading-spinner'
export const LoadingPane: FC = () => {
const { t } = useTranslation()
return (
<div className="loading-panel">
<span>
<i className="fa fa-spin fa-refresh" />
&nbsp;&nbsp;{t('loading')}
</span>
<LoadingSpinner />
</div>
)
}
@@ -1,14 +0,0 @@
import { useTranslation } from 'react-i18next'
export default function NoOpenDocPane() {
const { t } = useTranslation()
return (
<div className="loading-panel">
<span>
<i className="fa fa-arrow-left" />
&nbsp;&nbsp;{t('open_a_file_on_the_left')}
</span>
</div>
)
}