Spaces:
Sleeping
Sleeping
Follow -> Go to profile
Browse filesmuch clearer. Thanks
@strickvl
for the idea.
- components/Content.tsx +8 -13
components/Content.tsx
CHANGED
@@ -373,16 +373,11 @@ export function Content({}) {
|
|
373 |
}
|
374 |
|
375 |
const AccountDetails = memo(({ account }: { account: AccountDetails }) => {
|
376 |
-
const {
|
377 |
-
|
378 |
-
|
379 |
-
|
380 |
-
|
381 |
-
} = account;
|
382 |
-
|
383 |
-
const [expandedFollowers, setExpandedFollowers] = useState(false);
|
384 |
-
const hasAvatar = avatarUrl && !avatarUrl.endsWith('.svg');
|
385 |
-
|
386 |
return (
|
387 |
<li className="px-4 py-3 pb-7 sm:px-0 sm:py-4">
|
388 |
<div className="flex flex-col gap-4 sm:flex-row">
|
@@ -446,13 +441,13 @@ const AccountDetails = memo(({ account }: { account: AccountDetails }) => {
|
|
446 |
target="_blank"
|
447 |
rel="noopener noreferrer"
|
448 |
>
|
449 |
-
|
450 |
</a>
|
451 |
</div>
|
452 |
</div>
|
453 |
</li>
|
454 |
-
)
|
455 |
-
})
|
456 |
AccountDetails.displayName = 'AccountDetails'
|
457 |
|
458 |
function ErrorLog({ errors }: { errors: Array<string> }) {
|
|
|
373 |
}
|
374 |
|
375 |
const AccountDetails = memo(({ account }: { account: AccountDetails }) => {
|
376 |
+
const { avatarUrl, fullname, user, followed_by } = account
|
377 |
+
|
378 |
+
const [expandedFollowers, setExpandedFollowers] = useState(false)
|
379 |
+
const hasAvatar = avatarUrl && !avatarUrl.endsWith('.svg')
|
380 |
+
|
|
|
|
|
|
|
|
|
|
|
381 |
return (
|
382 |
<li className="px-4 py-3 pb-7 sm:px-0 sm:py-4">
|
383 |
<div className="flex flex-col gap-4 sm:flex-row">
|
|
|
441 |
target="_blank"
|
442 |
rel="noopener noreferrer"
|
443 |
>
|
444 |
+
Go to profile
|
445 |
</a>
|
446 |
</div>
|
447 |
</div>
|
448 |
</li>
|
449 |
+
)
|
450 |
+
})
|
451 |
AccountDetails.displayName = 'AccountDetails'
|
452 |
|
453 |
function ErrorLog({ errors }: { errors: Array<string> }) {
|