From 455fbd8cc361536f6c9ce09f8d2c3c7ca5a716f8 Mon Sep 17 00:00:00 2001 From: Antoine Clausse Date: Fri, 8 Nov 2024 10:39:51 +0100 Subject: [PATCH] Update loading spinner in Chat (#21624) GitOrigin-RevId: 6af510b7e229249dd5192ceba2ec88e95339cab5 --- .../frontend/js/features/chat/components/chat-pane.tsx | 10 +++++++--- .../frontend/js/shared/components/loading-spinner.tsx | 7 ++++++- 2 files changed, 13 insertions(+), 4 deletions(-) diff --git a/services/web/frontend/js/features/chat/components/chat-pane.tsx b/services/web/frontend/js/features/chat/components/chat-pane.tsx index fd4376bd5e..2d965c4228 100644 --- a/services/web/frontend/js/features/chat/components/chat-pane.tsx +++ b/services/web/frontend/js/features/chat/components/chat-pane.tsx @@ -10,13 +10,17 @@ import { useUserContext } from '../../../shared/context/user-context' import withErrorBoundary from '../../../infrastructure/error-boundary' import { FetchError } from '../../../infrastructure/fetch-json' import { useChatContext } from '../context/chat-context' -import LoadingSpinner from '../../../shared/components/loading-spinner' +import { FullSizeLoadingSpinner } from '../../../shared/components/loading-spinner' import { bsVersion } from '@/features/utils/bootstrap-5' import BootstrapVersionSwitcher from '@/features/ui/components/bootstrap-5/bootstrap-version-switcher' import MaterialIcon from '@/shared/components/material-icon' const MessageList = lazy(() => import('./message-list')) +const Loading = () => ( + +) + const ChatPane = React.memo(function ChatPane() { const { t } = useTranslation() @@ -85,8 +89,8 @@ const ChatPane = React.memo(function ChatPane() {

{t('chat')}

- }> - {status === 'pending' && } + }> + {status === 'pending' && } {shouldDisplayPlaceholder && } +
)