0
0
Fork 0

Change onboarding flow in web UI (#32998)

This commit is contained in:
Eugen Rochko 2024-11-26 17:10:12 +01:00 committed by GitHub
parent 429e08e3d2
commit 7a3dea385e
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
32 changed files with 1142 additions and 1183 deletions

View file

@ -99,7 +99,12 @@ export const FollowButton: React.FC<{
return (
<Button
onClick={handleClick}
disabled={relationship?.blocked_by || relationship?.blocking}
disabled={
relationship?.blocked_by ||
relationship?.blocking ||
(!(relationship?.following || relationship?.requested) &&
(account?.suspended || !!account?.moved))
}
secondary={following}
className={following ? 'button--destructive' : undefined}
>