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";
4646import history from "util/history" ;
4747import { useApplicationId } from "util/hooks" ;
4848import { canManageApp } from "util/permissionUtils" ;
49- import ProfileDropdown from "./profileDropdown" ;
5049import { Logo , LogoHome , LogoWithName } from "@lowcoder-ee/assets/images" ;
5150import { HeaderStartDropdown } from "./headerStartDropdown" ;
5251import { 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 ) ;
Original file line number Diff line number Diff line change @@ -11,7 +11,6 @@ import styled from "styled-components";
1111import history from "util/history" ;
1212import { useApplicationId } from "util/hooks" ;
1313import { canEditApp , canManageApp } from "util/permissionUtils" ;
14- import ProfileDropdown from "./profileDropdown" ;
1514import { trans } from "i18n" ;
1615import { Logo } from "@lowcoder-ee/assets/images" ;
1716import { 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 ) ;
Load Diff This file was deleted.
You can’t perform that action at this time.
0 commit comments