kopia lustrzana https://gitlab.com/soapbox-pub/soapbox
Fix random type errors now that imports are type safe
rodzic
848d128603
commit
223533f4db
|
@ -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}
|
||||||
|
|
|
@ -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 ? (
|
||||||
|
|
|
@ -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]);
|
||||||
|
|
||||||
|
|
Ładowanie…
Reference in New Issue