Re-enable a11y linting rules

This commit is contained in:
Alejandro Celaya 2023-09-02 10:38:20 +02:00
parent a40b67f65f
commit b20698ecb2
2 changed files with 1 additions and 5 deletions

View file

@ -8,10 +8,6 @@
}, },
"ignorePatterns": ["src/service*.ts"], "ignorePatterns": ["src/service*.ts"],
"rules": { "rules": {
"jsx-a11y/control-has-associated-label": "off",
"jsx-a11y/label-has-associated-control": "off",
"jsx-a11y/click-events-have-key-events": "off",
"jsx-a11y/no-static-element-interactions": "off",
"react-hooks/rules-of-hooks": "off", "react-hooks/rules-of-hooks": "off",
"react-hooks/exhaustive-deps": "off" "react-hooks/exhaustive-deps": "off"
} }

View file

@ -18,7 +18,7 @@ export const DeleteServerButton = (DeleteServerModal: FC<DeleteServerModalProps>
return ( return (
<> <>
<span className={className} onClick={showModal}> <span className={className} onPointerDown={showModal}>
{!children && <FontAwesomeIcon fixedWidth icon={deleteIcon} />} {!children && <FontAwesomeIcon fixedWidth icon={deleteIcon} />}
<span className={textClassName}>{children ?? 'Remove this server'}</span> <span className={textClassName}>{children ?? 'Remove this server'}</span>
</span> </span>