mirror of
https://github.com/AppFlowy-IO/AppFlowy-Web.git
synced 2026-03-13 10:00:26 +08:00
chore: ust dot animation
This commit is contained in:
@@ -32,7 +32,7 @@ import { AuthInternalContext } from './contexts/AuthInternalContext';
|
||||
import { AppAuthLayer } from './layers/AppAuthLayer';
|
||||
import { AppBusinessLayer } from './layers/AppBusinessLayer';
|
||||
import { AppSyncLayer } from './layers/AppSyncLayer';
|
||||
import { WorkspaceLoadingAnimation } from './WorkspaceLoadingAnimation';
|
||||
import LoadingDots from '@/components/_shared/LoadingDots';
|
||||
|
||||
// Main AppContext interface - kept identical to maintain backward compatibility
|
||||
export interface AppContextType {
|
||||
@@ -101,7 +101,11 @@ const ConditionalWorkspaceLayers = ({ children }: { children: React.ReactNode })
|
||||
|
||||
// Show loading animation while workspace ID is being loaded
|
||||
if (!userWorkspaceInfo) {
|
||||
return <WorkspaceLoadingAnimation />;
|
||||
return (
|
||||
<div className='fixed inset-0 flex items-center justify-center bg-background-primary'>
|
||||
<LoadingDots className='flex items-center justify-center' />
|
||||
</div>
|
||||
);
|
||||
}
|
||||
|
||||
return (
|
||||
|
||||
@@ -18,7 +18,7 @@ export const AppAuthLayer: React.FC<AppAuthLayerProps> = ({ children }) => {
|
||||
const service = useService();
|
||||
const navigate = useNavigate();
|
||||
const params = useParams();
|
||||
|
||||
|
||||
const [userWorkspaceInfo, setUserWorkspaceInfo] = useState<UserWorkspaceInfo | undefined>(undefined);
|
||||
|
||||
// Calculate current workspace ID from URL params or user info
|
||||
|
||||
@@ -1,8 +1,8 @@
|
||||
import * as React from 'react';
|
||||
import Box from '@mui/material/Box';
|
||||
import LinearProgress from '@mui/material/LinearProgress';
|
||||
import * as React from 'react';
|
||||
|
||||
export default function LinearBuffer () {
|
||||
export default function LinearBuffer() {
|
||||
const [progress, setProgress] = React.useState(0);
|
||||
const [buffer, setBuffer] = React.useState(10);
|
||||
|
||||
|
||||
@@ -5,7 +5,7 @@ import { useContext, useEffect, useState } from 'react';
|
||||
import { useTranslation } from 'react-i18next';
|
||||
import { useNavigate } from 'react-router-dom';
|
||||
import { ReactComponent as ErrorIcon } from '@/assets/icons/error.svg';
|
||||
import { WorkspaceLoadingAnimation } from '@/components/app/WorkspaceLoadingAnimation';
|
||||
import LoadingDots from '@/components/_shared/LoadingDots';
|
||||
|
||||
function LoginAuth () {
|
||||
const service = useContext(AFConfigContext)?.service;
|
||||
@@ -36,7 +36,7 @@ function LoginAuth () {
|
||||
<>
|
||||
{loading ? (
|
||||
<div className={'flex h-screen w-screen items-center justify-center p-20'}>
|
||||
<WorkspaceLoadingAnimation />
|
||||
<LoadingDots className='flex items-center justify-center' />
|
||||
</div>
|
||||
) : null}
|
||||
<NormalModal
|
||||
|
||||
Reference in New Issue
Block a user