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>
<IconButtonElement
is='paper-icon-button-light'
type='button'
className='btnDelete listItemButton'
title='Delete'
icon='delete'

View File

@ -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'

View File

@ -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'
/>

View File

@ -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)}"` : '',

View File

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