feat: Twitter import button on follows tab

This commit is contained in:
Kieran 2023-04-18 11:28:56 +01:00
parent bffc8350e9
commit 4afdd5afd4
Signed by: Kieran
GPG Key ID: DE71CEB3925BE941
1 changed files with 8 additions and 1 deletions

View File

@ -263,7 +263,14 @@ export default function ProfilePage() {
}
case FOLLOWS: {
if (isMe) {
return <FollowsList pubkeys={follows} showFollowAll={!isMe} showAbout={false} />;
return (
<>
<button onClick={() => navigate("/new/import")} className="mb10">
<FormattedMessage defaultMessage="Find Twitter follows" />
</button>
<FollowsList pubkeys={follows} showFollowAll={!isMe} showAbout={false} />;
</>
);
} else {
return <FollowsTab id={id} />;
}