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