mirror of
https://github.com/CherryHQ/cherry-studio.git
synced 2026-01-02 10:29:02 +08:00
feat: replace SvgSpinners180Ring with BeatLoader for improved loading animation in MinappPopupContainer
This commit is contained in:
parent
a6379bd05e
commit
77286eb9dd
@ -24,9 +24,9 @@ import { Avatar, Drawer, Tooltip } from 'antd'
|
|||||||
import { WebviewTag } from 'electron'
|
import { WebviewTag } from 'electron'
|
||||||
import { useEffect, useMemo, useRef, useState } from 'react'
|
import { useEffect, useMemo, useRef, useState } from 'react'
|
||||||
import { useTranslation } from 'react-i18next'
|
import { useTranslation } from 'react-i18next'
|
||||||
|
import BeatLoader from 'react-spinners/BeatLoader'
|
||||||
import styled from 'styled-components'
|
import styled from 'styled-components'
|
||||||
|
|
||||||
import SvgSpinners180Ring from '../Icons/SvgSpinners180Ring'
|
|
||||||
import WebviewContainer from './WebviewContainer'
|
import WebviewContainer from './WebviewContainer'
|
||||||
|
|
||||||
interface AppExtraInfo {
|
interface AppExtraInfo {
|
||||||
@ -375,7 +375,7 @@ const MinappPopupContainer: React.FC = () => {
|
|||||||
size={80}
|
size={80}
|
||||||
style={{ border: '1px solid var(--color-border)', marginTop: -150 }}
|
style={{ border: '1px solid var(--color-border)', marginTop: -150 }}
|
||||||
/>
|
/>
|
||||||
<SvgSpinners180Ring color="var(--color-text-2)" style={{ marginTop: 15 }} />
|
<BeatLoader color="var(--color-text-2)" size={10} style={{ marginTop: 15 }} />
|
||||||
</EmptyView>
|
</EmptyView>
|
||||||
)}
|
)}
|
||||||
{WebviewContainerGroup}
|
{WebviewContainerGroup}
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user