mirror of
https://github.com/jellyfin/jellyfin-web.git
synced 2024-11-16 10:28:18 -07:00
remove type prop form IconButtonElement
This commit is contained in:
parent
47a0928f4c
commit
fb04b4b58a
@ -40,7 +40,6 @@ const AccessScheduleList: FunctionComponent<IProps> = ({index, DayOfWeek, StartH
|
||||
</div>
|
||||
<IconButtonElement
|
||||
is='paper-icon-button-light'
|
||||
type='button'
|
||||
className='btnDelete listItemButton'
|
||||
title='Delete'
|
||||
icon='delete'
|
||||
|
@ -16,7 +16,6 @@ const BlockedTagList: FunctionComponent<IProps> = ({tag}: IProps) => {
|
||||
</div>
|
||||
<IconButtonElement
|
||||
is='paper-icon-button-light'
|
||||
type='button'
|
||||
className='blockedTag btnDeleteTag listItemButton'
|
||||
title='Delete'
|
||||
icon='delete'
|
||||
|
@ -78,7 +78,6 @@ const UserCardBox: FunctionComponent<IProps> = ({ user = {} }: IProps) => {
|
||||
>
|
||||
<IconButtonElement
|
||||
is='paper-icon-button-light'
|
||||
type='button'
|
||||
className='btnUserMenu flex-shrink-zero'
|
||||
icon='more_vert'
|
||||
/>
|
||||
|
@ -3,7 +3,6 @@ import globalize from '../scripts/globalize';
|
||||
|
||||
type IProps = {
|
||||
is?: string;
|
||||
type?: string;
|
||||
id?: string;
|
||||
title?: string;
|
||||
className?: string;
|
||||
@ -13,10 +12,10 @@ type IProps = {
|
||||
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
|
||||
is="${is}"
|
||||
type="${type}"
|
||||
type="button"
|
||||
${id}
|
||||
class="${className}"
|
||||
${title}
|
||||
@ -28,12 +27,11 @@ const createIconButtonElement = ({ is, type, id, className, title, icon, dataInd
|
||||
</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 (
|
||||
<div
|
||||
dangerouslySetInnerHTML={createIconButtonElement({
|
||||
is: is,
|
||||
type: type,
|
||||
id: id ? `id="${id}"` : '',
|
||||
className: className,
|
||||
title: title ? `title="${globalize.translate(title)}"` : '',
|
||||
|
@ -22,7 +22,6 @@ const SectionTitleContainer: FunctionComponent<IProps> = ({SectionClassName, tit
|
||||
|
||||
{isBtnVisible && <IconButtonElement
|
||||
is='emby-button'
|
||||
type='button'
|
||||
id={btnId}
|
||||
className={btnClassName}
|
||||
title={btnTitle}
|
||||
|
Loading…
Reference in New Issue
Block a user