refactor(react-doctor): raise score from 79 to 90

This commit is contained in:
plebeius
2026-02-24 15:15:44 +08:00
parent 5bd1dc0e71
commit e51f5b968c
36 changed files with 2372 additions and 1030 deletions
@@ -22,7 +22,18 @@ const SubscriptionButton = ({ address }: { address: string }) => {
return (
<span className={styles.subscriptionButton}>
[
<span className={styles.button} onClick={handleClick}>
<span
className={styles.button}
role='button'
tabIndex={0}
onKeyDown={(e) => {
if (e.key === 'Enter' || e.key === ' ') {
e.preventDefault();
handleClick();
}
}}
onClick={handleClick}
>
{recentlyUnsubscribed || !subscribed ? t('subscribe') : t('unsubscribe')}
</span>
]
@@ -48,7 +59,18 @@ const SubscriptionsSetting = () => {
{subscriptions?.length > 1 && (
<div className={styles.unsubscribeAll}>
[
<span className={styles.button} onClick={unsubscribeAll}>
<span
className={styles.button}
role='button'
tabIndex={0}
onKeyDown={(e) => {
if (e.key === 'Enter' || e.key === ' ') {
e.preventDefault();
unsubscribeAll();
}
}}
onClick={unsubscribeAll}
>
{t('unsubscribe_all')}
</span>
]