use LinkButton in SectionTitleContainer
This commit is contained in:
committed by
Bill Thornton
parent
7011d09b4b
commit
30bce48c23
@@ -1,6 +1,7 @@
|
||||
import React, { FunctionComponent } from 'react';
|
||||
import IconButtonElement from './IconButtonElement';
|
||||
import SectionTitleLinkElement from './SectionTitleLinkElement';
|
||||
import LinkButton from './emby-button/LinkButton';
|
||||
import globalize from '../scripts/globalize';
|
||||
|
||||
type IProps = {
|
||||
SectionClassName?: string;
|
||||
@@ -28,11 +29,13 @@ const SectionTitleContainer: FunctionComponent<IProps> = ({ SectionClassName, ti
|
||||
icon={btnIcon}
|
||||
/>}
|
||||
|
||||
{isLinkVisible && <SectionTitleLinkElement
|
||||
{isLinkVisible && <LinkButton
|
||||
className='raised button-alt headerHelpButton'
|
||||
title='Help'
|
||||
url={url}
|
||||
/>}
|
||||
target='_blank'
|
||||
rel='noopener noreferrer'
|
||||
href={url}>
|
||||
{globalize.translate('Help')}
|
||||
</LinkButton>}
|
||||
|
||||
</div>
|
||||
);
|
||||
|
||||
Reference in New Issue
Block a user