Fix random type errors now that imports are type safe

merge-requests/3194/merge
Alex Gleason 2024-11-08 19:22:51 -06:00
rodzic 848d128603
commit 223533f4db
Nie znaleziono w bazie danych klucza dla tego podpisu
ID klucza GPG: 7211D1F99744FBB7
3 zmienionych plików z 12 dodań i 3 usunięć

Wyświetl plik

@ -250,7 +250,7 @@ const PrivacyDropdown: React.FC<IPrivacyDropdown> = ({
'text-gray-600 hover:text-gray-700 dark:hover:text-gray-500': !open, 'text-gray-600 hover:text-gray-700 dark:hover:text-gray-500': !open,
'text-primary-500 hover:text-primary-600 dark:text-primary-500 dark:hover:text-primary-400': open, 'text-primary-500 hover:text-primary-600 dark:text-primary-500 dark:hover:text-primary-400': open,
})} })}
src={valueOption?.icon} src={valueOption!.icon}
title={intl.formatMessage(messages.change_privacy)} title={intl.formatMessage(messages.change_privacy)}
onClick={handleToggle} onClick={handleToggle}
onMouseDown={handleMouseDown} onMouseDown={handleMouseDown}

Wyświetl plik

@ -221,12 +221,21 @@ const ActionButton: React.FC<IActionButton> = ({ account, actionType, small }) =
); );
} else if (!account.relationship?.blocking && !account.relationship?.muting) { } else if (!account.relationship?.blocking && !account.relationship?.muting) {
// Follow & Unfollow // Follow & Unfollow
let icon: string | undefined;
if (isFollowing) {
icon = plusIcon;
} else if (blockedBy) {
icon = banIcon;
}
return ( return (
<Button <Button
size='sm' size='sm'
disabled={blockedBy} disabled={blockedBy}
theme={isFollowing ? 'secondary' : 'primary'} theme={isFollowing ? 'secondary' : 'primary'}
icon={blockedBy ? banIcon : (!isFollowing && plusIcon)} icon={icon}
onClick={handleFollow} onClick={handleFollow}
> >
{isFollowing ? ( {isFollowing ? (

Wyświetl plik

@ -35,7 +35,7 @@ const ThemeSelector: React.FC<IThemeSelector> = ({ value, onChange }) => {
case 'black': case 'black':
return shadowIcon; return shadowIcon;
default: default:
return null; return deviceDesktopIcon;
} }
}, [value]); }, [value]);