removes loader added for testing (#7822)

This commit is contained in:
Arpit 2023-10-13 13:32:41 +05:30 committed by GitHub
parent c05fee0c3f
commit b2ec4ed513
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 5 additions and 5 deletions

View file

@ -1,14 +1,13 @@
import React, { useEffect } from 'react';
import { withTranslation } from 'react-i18next';
import { appService, organizationService, authenticationService } from '@/_services';
import { Editor } from '../Editor/Editor';
import { Editor, EditorFunc } from '@/Editor';
import { RealtimeEditor } from '@/Editor/RealtimeEditor';
import config from 'config';
import { safelyParseJSON, stripTrailingSlash, redirectToDashboard, getSubpath, getWorkspaceId } from '@/_helpers/utils';
import { toast } from 'react-hot-toast';
import { useParams } from 'react-router-dom';
import { useAppDataActions } from '@/_stores/appDataStore';
import Spinner from '@/_ui/Spinner';
import _ from 'lodash';
const AppLoaderComponent = (props) => {
@ -78,12 +77,12 @@ const AppLoaderComponent = (props) => {
}
};
if (!shouldLoadApp) return <Spinner />;
if (!shouldLoadApp) return <></>;
return config.ENABLE_MULTIPLAYER_EDITING ? (
<RealtimeEditor {...props} shouldLoadApp={shouldLoadApp} />
) : (
<Editor {...props} shouldLoadApp={shouldLoadApp} />
<EditorFunc {...props} shouldLoadApp={shouldLoadApp} />
);
};

View file

@ -65,7 +65,8 @@ export default function EditorHeader({
updatePresence(initialPresence);
// eslint-disable-next-line react-hooks/exhaustive-deps
}, [currentUser]);
const handleLogoClick = () => {
const handleLogoClick = (e) => {
e.preventDefault();
// Force a reload for clearing interval triggers
window.location.href = '/';
};