Browse Source

Add optional tooltip to header title

master
jeffvli 3 years ago
committed by Jeff
parent
commit
a288bc3c39
  1. 8
      src/components/layout/GenericPageHeader.tsx

8
src/components/layout/GenericPageHeader.tsx

@ -6,6 +6,7 @@ import ViewTypeButtons from '../viewtypes/ViewTypeButtons';
import { StyledInputGroup } from '../shared/styled';
import { CoverArtWrapper, PageHeaderTitle } from './styled';
import cacheImage from '../shared/cacheImage';
import CustomTooltip from '../shared/CustomTooltip';
const GenericPageHeader = ({
image,
@ -23,6 +24,7 @@ const GenericPageHeader = ({
handleGridClick,
viewTypeSetting,
cacheImages,
showTitleTooltip,
}: any) => {
const history = useHistory();
@ -68,7 +70,13 @@ const GenericPageHeader = ({
overflow: 'hidden',
}}
>
{showTitleTooltip ? (
<CustomTooltip text={title} placement="bottom">
<PageHeaderTitle>{title}</PageHeaderTitle>
</CustomTooltip>
) : (
<PageHeaderTitle>{title}</PageHeaderTitle>
)}
</span>
<span
style={{

Loading…
Cancel
Save