feat: Enabled collab presence feature (#7376)
* enabled collab presence feature * putting back unrelated changes
This commit is contained in:
parent
e08fc3c538
commit
a811bac995
|
|
@ -57,7 +57,6 @@ import { useLocation } from "react-router";
|
||||||
import { setIsGitSyncModalOpen } from "actions/gitSyncActions";
|
import { setIsGitSyncModalOpen } from "actions/gitSyncActions";
|
||||||
import RealtimeAppEditors from "./RealtimeAppEditors";
|
import RealtimeAppEditors from "./RealtimeAppEditors";
|
||||||
import { EditorSaveIndicator } from "./EditorSaveIndicator";
|
import { EditorSaveIndicator } from "./EditorSaveIndicator";
|
||||||
import { isMultiplayerEnabledForUser as isMultiplayerEnabledForUserSelector } from "selectors/appCollabSelectors";
|
|
||||||
import getFeatureFlags from "utils/featureFlags";
|
import getFeatureFlags from "utils/featureFlags";
|
||||||
|
|
||||||
const HeaderWrapper = styled(StyledHeader)`
|
const HeaderWrapper = styled(StyledHeader)`
|
||||||
|
|
@ -227,10 +226,6 @@ export function EditorHeader(props: EditorHeaderProps) {
|
||||||
dispatch(setIsGitSyncModalOpen(true));
|
dispatch(setIsGitSyncModalOpen(true));
|
||||||
}, [dispatch, setIsGitSyncModalOpen]);
|
}, [dispatch, setIsGitSyncModalOpen]);
|
||||||
|
|
||||||
const isMultiplayerEnabledForUser = useSelector(
|
|
||||||
isMultiplayerEnabledForUserSelector,
|
|
||||||
);
|
|
||||||
|
|
||||||
const handleClickDeploy = useCallback(() => {
|
const handleClickDeploy = useCallback(() => {
|
||||||
if (getFeatureFlags().GIT) {
|
if (getFeatureFlags().GIT) {
|
||||||
showGitSyncModal();
|
showGitSyncModal();
|
||||||
|
|
@ -288,9 +283,7 @@ export function EditorHeader(props: EditorHeaderProps) {
|
||||||
</HeaderSection>
|
</HeaderSection>
|
||||||
<HeaderSection>
|
<HeaderSection>
|
||||||
<EditorSaveIndicator />
|
<EditorSaveIndicator />
|
||||||
{isMultiplayerEnabledForUser && (
|
<RealtimeAppEditors applicationId={applicationId} />
|
||||||
<RealtimeAppEditors applicationId={applicationId} />
|
|
||||||
)}
|
|
||||||
<Boxed step={OnboardingStep.FINISH}>
|
<Boxed step={OnboardingStep.FINISH}>
|
||||||
<FormDialogComponent
|
<FormDialogComponent
|
||||||
Form={AppInviteUsersForm}
|
Form={AppInviteUsersForm}
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue
Block a user