[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:
@@ -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" />
|
||||
{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" />
|
||||
{t('open_a_file_on_the_left')}
|
||||
</span>
|
||||
</div>
|
||||
)
|
||||
}
|
||||
Reference in New Issue
Block a user