Skip to content

Commit

Permalink
Fix: Show log-out on try it on mobile screens (#569)
Browse files Browse the repository at this point in the history
Fix: Show log-out on try it on mobile screens
  • Loading branch information
thewahome committed Jun 2, 2020
2 parents c9246b2 + e137b4e commit 18636e4
Showing 1 changed file with 7 additions and 12 deletions.
19 changes: 7 additions & 12 deletions src/app/views/authentication/profile/Profile.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -98,7 +98,6 @@ export class Profile extends Component<IProfileProps, IProfileState> {
const { user } = this.state;
const {
intl: { messages },
mobileScreen,
minimised,
graphExplorerMode,
}: any = this.props;
Expand Down Expand Up @@ -158,11 +157,7 @@ export class Profile extends Component<IProfileProps, IProfileState> {

return (
<div className={classes.profile}>
{mobileScreen &&
<Persona {...persona} size={PersonaSize.size40} />
}

{!mobileScreen && this.showProfileComponent(profileProperties, graphExplorerMode, menuProperties)}
{this.showProfileComponent(profileProperties, graphExplorerMode, menuProperties)}
</div>
);
}
Expand All @@ -175,13 +170,13 @@ export class Profile extends Component<IProfileProps, IProfileState> {
styles={profileProperties.styles}
hidePersonaDetails={profileProperties.hidePersonaDetails} />;

if (graphExplorerMode === Mode.TryIt) {
return <ActionButton ariaLabel='profile' role='button' menuProps={menuProperties}>
{persona}
</ActionButton>;
}
if (graphExplorerMode === Mode.TryIt) {
return <ActionButton ariaLabel='profile' role='button' menuProps={menuProperties}>
{persona}
</ActionButton>;
}

return persona;
return persona;
}
}

Expand Down

0 comments on commit 18636e4

Please sign in to comment.