mirror of
https://github.com/open-metadata/OpenMetadata.git
synced 2025-09-08 08:31:37 +00:00
This commit is contained in:
parent
cb5e2196be
commit
4344a1ea19
@ -206,7 +206,7 @@ const Appbar: React.FC = (): JSX.Element => {
|
||||
icon={
|
||||
<SVGIcons
|
||||
alt="Doc icon"
|
||||
className="tw-align-middle tw-mr-1"
|
||||
className="tw-align-middle tw-mt-0.5 tw-mr-1"
|
||||
icon={Icons.HELP_CIRCLE}
|
||||
width="16"
|
||||
/>
|
||||
@ -226,14 +226,25 @@ const Appbar: React.FC = (): JSX.Element => {
|
||||
},
|
||||
]}
|
||||
icon={
|
||||
<IconDefaultUserProfile
|
||||
className=""
|
||||
style={{
|
||||
height: '24px',
|
||||
width: '24px',
|
||||
borderRadius: '50%',
|
||||
}}
|
||||
/>
|
||||
<>
|
||||
{appState.userDetails.profile?.images.image512 ? (
|
||||
<div className="profile-image">
|
||||
<img
|
||||
alt="user"
|
||||
src={appState.userDetails.profile.images.image512}
|
||||
/>
|
||||
</div>
|
||||
) : (
|
||||
<IconDefaultUserProfile
|
||||
className=""
|
||||
style={{
|
||||
height: '24px',
|
||||
width: '24px',
|
||||
borderRadius: '50%',
|
||||
}}
|
||||
/>
|
||||
)}
|
||||
</>
|
||||
}
|
||||
label=""
|
||||
type="link"
|
||||
|
@ -17,7 +17,6 @@
|
||||
|
||||
import PropTypes from 'prop-types';
|
||||
import React, { useState } from 'react';
|
||||
import AppState from '../../AppState';
|
||||
import { activeLink, normalLink } from '../../utils/styleconstant';
|
||||
import { dropdownIcon as DropdownIcon } from '../../utils/svgconstant';
|
||||
import AnchorDropDownList from './AnchorDropDownList';
|
||||
@ -102,20 +101,7 @@ const DropDown: React.FC<DropDownProp> = ({
|
||||
</>
|
||||
) : (
|
||||
<>
|
||||
{Icon && (
|
||||
<div className="">
|
||||
{AppState.userDetails.profile?.images.image512 ? (
|
||||
<div className="profile-image">
|
||||
<img
|
||||
alt="user"
|
||||
src={AppState.userDetails.profile.images.image512}
|
||||
/>
|
||||
</div>
|
||||
) : (
|
||||
Icon
|
||||
)}
|
||||
</div>
|
||||
)}
|
||||
{Icon && Icon}
|
||||
{label && (
|
||||
<p
|
||||
className="hover:tw-underline"
|
||||
|
Loading…
x
Reference in New Issue
Block a user