mirror of
https://github.com/overleaf/overleaf.git
synced 2025-01-23 21:21:44 +00:00
Merge pull request #7275 from overleaf/ds-shared-loading-spinner-2
Changed LoadingSpinner default delay GitOrigin-RevId: 2bf499585e3394e5c6b8ed9583add7ef6f678fc1
This commit is contained in:
parent
9e6b1fbb67
commit
dc6f480843
3 changed files with 3 additions and 3 deletions
|
@ -71,7 +71,7 @@ const ChatPane = React.memo(function ChatPane() {
|
|||
>
|
||||
<div>
|
||||
<h2 className="sr-only">{t('chat')}</h2>
|
||||
{status === 'pending' && <LoadingSpinner />}
|
||||
{status === 'pending' && <LoadingSpinner delay={500} />}
|
||||
{shouldDisplayPlaceholder && <Placeholder />}
|
||||
<MessageList
|
||||
messages={messages}
|
||||
|
|
|
@ -27,7 +27,7 @@ function PdfPreviewPane() {
|
|||
function LoadingPreview() {
|
||||
return (
|
||||
<div className="pdf-loading-spinner-container">
|
||||
<LoadingSpinner />
|
||||
<LoadingSpinner delay={500} />
|
||||
</div>
|
||||
)
|
||||
}
|
||||
|
|
|
@ -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)
|
||||
|
|
Loading…
Reference in a new issue