1
0
Fork 0
mirror of https://github.com/jellyfin/jellyfin-web synced 2025-03-30 19:56:21 +00:00

remove type prop form IconButtonElement

This commit is contained in:
grafixeyehero 2022-07-07 23:35:28 +03:00
parent 47a0928f4c
commit fb04b4b58a
5 changed files with 3 additions and 9 deletions

View file

@ -40,7 +40,6 @@ const AccessScheduleList: FunctionComponent<IProps> = ({index, DayOfWeek, StartH
</div> </div>
<IconButtonElement <IconButtonElement
is='paper-icon-button-light' is='paper-icon-button-light'
type='button'
className='btnDelete listItemButton' className='btnDelete listItemButton'
title='Delete' title='Delete'
icon='delete' icon='delete'

View file

@ -16,7 +16,6 @@ const BlockedTagList: FunctionComponent<IProps> = ({tag}: IProps) => {
</div> </div>
<IconButtonElement <IconButtonElement
is='paper-icon-button-light' is='paper-icon-button-light'
type='button'
className='blockedTag btnDeleteTag listItemButton' className='blockedTag btnDeleteTag listItemButton'
title='Delete' title='Delete'
icon='delete' icon='delete'

View file

@ -78,7 +78,6 @@ const UserCardBox: FunctionComponent<IProps> = ({ user = {} }: IProps) => {
> >
<IconButtonElement <IconButtonElement
is='paper-icon-button-light' is='paper-icon-button-light'
type='button'
className='btnUserMenu flex-shrink-zero' className='btnUserMenu flex-shrink-zero'
icon='more_vert' icon='more_vert'
/> />

View file

@ -3,7 +3,6 @@ import globalize from '../scripts/globalize';
type IProps = { type IProps = {
is?: string; is?: string;
type?: string;
id?: string; id?: string;
title?: string; title?: string;
className?: string; className?: string;
@ -13,10 +12,10 @@ type IProps = {
dataProfileid?: string | number; dataProfileid?: string | number;
} }
const createIconButtonElement = ({ is, type, id, className, title, icon, dataIndex, dataTag, dataProfileid }: IProps) => ({ const createIconButtonElement = ({ is, id, className, title, icon, dataIndex, dataTag, dataProfileid }: IProps) => ({
__html: `<button __html: `<button
is="${is}" is="${is}"
type="${type}" type="button"
${id} ${id}
class="${className}" class="${className}"
${title} ${title}
@ -28,12 +27,11 @@ const createIconButtonElement = ({ is, type, id, className, title, icon, dataInd
</button>` </button>`
}); });
const IconButtonElement: FunctionComponent<IProps> = ({ is, type, id, className, title, icon, dataIndex, dataTag, dataProfileid }: IProps) => { const IconButtonElement: FunctionComponent<IProps> = ({ is, id, className, title, icon, dataIndex, dataTag, dataProfileid }: IProps) => {
return ( return (
<div <div
dangerouslySetInnerHTML={createIconButtonElement({ dangerouslySetInnerHTML={createIconButtonElement({
is: is, is: is,
type: type,
id: id ? `id="${id}"` : '', id: id ? `id="${id}"` : '',
className: className, className: className,
title: title ? `title="${globalize.translate(title)}"` : '', title: title ? `title="${globalize.translate(title)}"` : '',

View file

@ -22,7 +22,6 @@ const SectionTitleContainer: FunctionComponent<IProps> = ({SectionClassName, tit
{isBtnVisible && <IconButtonElement {isBtnVisible && <IconButtonElement
is='emby-button' is='emby-button'
type='button'
id={btnId} id={btnId}
className={btnClassName} className={btnClassName}
title={btnTitle} title={btnTitle}