File tree Expand file tree Collapse file tree 3 files changed +2
-274
lines changed
viewer/packages/lowcoder/src/pages/common Expand file tree Collapse file tree 3 files changed +2
-274
lines changed Original file line number Diff line number Diff line change @@ -46,7 +46,6 @@ import { ExternalEditorContext } from "util/context/ExternalEditorContext";
46
46
import history from "util/history" ;
47
47
import { useApplicationId } from "util/hooks" ;
48
48
import { canManageApp } from "util/permissionUtils" ;
49
- import ProfileDropdown from "./profileDropdown" ;
50
49
import { Logo , LogoHome , LogoWithName } from "@lowcoder-ee/assets/images" ;
51
50
import { HeaderStartDropdown } from "./headerStartDropdown" ;
52
51
import { AppPermissionDialog } from "../../components/PermissionDialog/AppPermissionDialog" ;
@@ -270,15 +269,13 @@ function HeaderProfile(props: { user: User }) {
270
269
}
271
270
return (
272
271
< div >
273
- { user . isAnonymous ? (
272
+ { (
274
273
< LoginBtn
275
274
buttonType = "primary"
276
275
onClick = { ( ) => history . push ( AUTH_LOGIN_URL ) }
277
276
>
278
277
{ trans ( "userAuth.login" ) }
279
278
</ LoginBtn >
280
- ) : (
281
- < ProfileDropdown user = { user } profileSide = { 28 } fontSize = { 12 } />
282
279
) }
283
280
</ div >
284
281
) ;
Original file line number Diff line number Diff line change @@ -11,7 +11,6 @@ import styled from "styled-components";
11
11
import history from "util/history" ;
12
12
import { useApplicationId } from "util/hooks" ;
13
13
import { canEditApp , canManageApp } from "util/permissionUtils" ;
14
- import ProfileDropdown from "./profileDropdown" ;
15
14
import { trans } from "i18n" ;
16
15
import { Logo } from "@lowcoder-ee/assets/images" ;
17
16
import { AppPermissionDialog } from "../../components/PermissionDialog/AppPermissionDialog" ;
@@ -115,14 +114,12 @@ export function HeaderProfile(props: { user: User }) {
115
114
}
116
115
return (
117
116
< div >
118
- { user . isAnonymous ? (
117
+ { (
119
118
! templateId ? (
120
119
< LoginBtn buttonType = "primary" onClick = { ( ) => history . push ( AUTH_LOGIN_URL ) } >
121
120
{ trans ( "userAuth.login" ) }
122
121
</ LoginBtn >
123
122
) : null
124
- ) : (
125
- < ProfileDropdown user = { user } profileSide = { 28 } fontSize = { 12 } />
126
123
) }
127
124
</ div >
128
125
) ;
Load Diff This file was deleted.
You can’t perform that action at this time.
0 commit comments