From dc6f480843e8f4ee8ab9e57ab54d1b046d9c89a1 Mon Sep 17 00:00:00 2001 From: June Kelly Date: Thu, 7 Apr 2022 09:58:48 +0100 Subject: [PATCH] Merge pull request #7275 from overleaf/ds-shared-loading-spinner-2 Changed LoadingSpinner default delay GitOrigin-RevId: 2bf499585e3394e5c6b8ed9583add7ef6f678fc1 --- services/web/frontend/js/features/chat/components/chat-pane.js | 2 +- .../js/features/pdf-preview/components/pdf-preview-pane.js | 2 +- services/web/frontend/js/shared/components/loading-spinner.js | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/services/web/frontend/js/features/chat/components/chat-pane.js b/services/web/frontend/js/features/chat/components/chat-pane.js index 1343369354..768fc9a76f 100644 --- a/services/web/frontend/js/features/chat/components/chat-pane.js +++ b/services/web/frontend/js/features/chat/components/chat-pane.js @@ -71,7 +71,7 @@ const ChatPane = React.memo(function ChatPane() { >

{t('chat')}

- {status === 'pending' && } + {status === 'pending' && } {shouldDisplayPlaceholder && } - +
) } diff --git a/services/web/frontend/js/shared/components/loading-spinner.js b/services/web/frontend/js/shared/components/loading-spinner.js index d750bd3876..79d4847edf 100644 --- a/services/web/frontend/js/shared/components/loading-spinner.js +++ b/services/web/frontend/js/shared/components/loading-spinner.js @@ -3,7 +3,7 @@ import Icon from './icon' import { useEffect, useState } from 'react' import PropTypes from 'prop-types' -function LoadingSpinner({ delay = 500 }) { +function LoadingSpinner({ delay = 0 }) { const { t } = useTranslation() const [show, setShow] = useState(false)