Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 6859f7d

Browse files
committed
Removeagain the profile of route and its dependencies.
1 parent ebcb8f4 commit 6859f7d

File tree

3 files changed

+2
-274
lines changed

3 files changed

+2
-274
lines changed

viewer/packages/lowcoder/src/pages/common/header.tsx

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,6 @@ import { ExternalEditorContext } from "util/context/ExternalEditorContext";
4646
import history from "util/history";
4747
import { useApplicationId } from "util/hooks";
4848
import { canManageApp } from "util/permissionUtils";
49-
import ProfileDropdown from "./profileDropdown";
5049
import { Logo, LogoHome, LogoWithName } from "@lowcoder-ee/assets/images";
5150
import { HeaderStartDropdown } from "./headerStartDropdown";
5251
import { AppPermissionDialog } from "../../components/PermissionDialog/AppPermissionDialog";
@@ -270,15 +269,13 @@ function HeaderProfile(props: { user: User }) {
270269
}
271270
return (
272271
<div>
273-
{user.isAnonymous ? (
272+
{(
274273
<LoginBtn
275274
buttonType="primary"
276275
onClick={() => history.push(AUTH_LOGIN_URL)}
277276
>
278277
{trans("userAuth.login")}
279278
</LoginBtn>
280-
) : (
281-
<ProfileDropdown user={user} profileSide={28} fontSize={12} />
282279
)}
283280
</div>
284281
);

viewer/packages/lowcoder/src/pages/common/previewHeader.tsx

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,6 @@ import styled from "styled-components";
1111
import history from "util/history";
1212
import { useApplicationId } from "util/hooks";
1313
import { canEditApp, canManageApp } from "util/permissionUtils";
14-
import ProfileDropdown from "./profileDropdown";
1514
import { trans } from "i18n";
1615
import { Logo } from "@lowcoder-ee/assets/images";
1716
import { AppPermissionDialog } from "../../components/PermissionDialog/AppPermissionDialog";
@@ -115,14 +114,12 @@ export function HeaderProfile(props: { user: User }) {
115114
}
116115
return (
117116
<div>
118-
{user.isAnonymous ? (
117+
{(
119118
!templateId ? (
120119
<LoginBtn buttonType="primary" onClick={() => history.push(AUTH_LOGIN_URL)}>
121120
{trans("userAuth.login")}
122121
</LoginBtn>
123122
) : null
124-
) : (
125-
<ProfileDropdown user={user} profileSide={28} fontSize={12} />
126123
)}
127124
</div>
128125
);

viewer/packages/lowcoder/src/pages/common/profileDropdown.tsx

Lines changed: 0 additions & 266 deletions
This file was deleted.

0 commit comments

Comments
 (0)