mirror of
https://github.com/bitsocialnet/5chan.git
synced 2026-08-03 07:41:04 +02:00
refactor(react-doctor): raise score from 79 to 90
This commit is contained in:
@@ -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>
|
||||
]
|
||||
|
||||
Reference in New Issue
Block a user