Skip to content

Commit

Permalink
use LinkButton in SectionTitleContainer
Browse files Browse the repository at this point in the history
  • Loading branch information
terite committed Feb 24, 2024
1 parent 1266042 commit 8a201ea
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 39 deletions.
13 changes: 8 additions & 5 deletions src/elements/SectionTitleContainer.tsx
Original file line number Diff line number Diff line change
@@ -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;
Expand Down Expand Up @@ -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>
);
Expand Down
34 changes: 0 additions & 34 deletions src/elements/SectionTitleLinkElement.tsx

This file was deleted.

0 comments on commit 8a201ea

Please sign in to comment.