fix(web): use title case for all Friends page headers
This commit is contained in:
@@ -89,7 +89,7 @@ export function FriendsPage({ mobile }: FriendsPageProps) {
|
|||||||
case 'online':
|
case 'online':
|
||||||
return (
|
return (
|
||||||
<div className="flex-1 overflow-y-auto p-4">
|
<div className="flex-1 overflow-y-auto p-4">
|
||||||
<h2 className="text-xs font-bold text-txt-tertiary uppercase mb-4 tracking-wider px-2">
|
<h2 className="text-xs font-bold text-txt-tertiary mb-4 tracking-wider px-2">
|
||||||
Online — {onlineFriends.length}
|
Online — {onlineFriends.length}
|
||||||
</h2>
|
</h2>
|
||||||
{onlineFriends.length === 0 ? (
|
{onlineFriends.length === 0 ? (
|
||||||
@@ -109,7 +109,7 @@ export function FriendsPage({ mobile }: FriendsPageProps) {
|
|||||||
case 'all':
|
case 'all':
|
||||||
return (
|
return (
|
||||||
<div className="flex-1 overflow-y-auto p-4">
|
<div className="flex-1 overflow-y-auto p-4">
|
||||||
<h2 className="text-xs font-bold text-txt-tertiary uppercase mb-4 tracking-wider px-2">
|
<h2 className="text-xs font-bold text-txt-tertiary mb-4 tracking-wider px-2">
|
||||||
All Friends — {friends.length}
|
All Friends — {friends.length}
|
||||||
</h2>
|
</h2>
|
||||||
{friends.length === 0 ? (
|
{friends.length === 0 ? (
|
||||||
@@ -129,7 +129,7 @@ export function FriendsPage({ mobile }: FriendsPageProps) {
|
|||||||
case 'pending':
|
case 'pending':
|
||||||
return (
|
return (
|
||||||
<div className="flex-1 overflow-y-auto p-4">
|
<div className="flex-1 overflow-y-auto p-4">
|
||||||
<h2 className="text-xs font-bold text-txt-tertiary uppercase mb-4 tracking-wider px-2">
|
<h2 className="text-xs font-bold text-txt-tertiary mb-4 tracking-wider px-2">
|
||||||
Pending — {pendingIncoming.length + pendingOutgoing.length}
|
Pending — {pendingIncoming.length + pendingOutgoing.length}
|
||||||
</h2>
|
</h2>
|
||||||
{[...pendingIncoming, ...pendingOutgoing].length === 0 ? (
|
{[...pendingIncoming, ...pendingOutgoing].length === 0 ? (
|
||||||
@@ -249,7 +249,7 @@ export function FriendsPage({ mobile }: FriendsPageProps) {
|
|||||||
<>
|
<>
|
||||||
{activeFriends.length > 0 && (
|
{activeFriends.length > 0 && (
|
||||||
<div className="mb-4">
|
<div className="mb-4">
|
||||||
<h2 className="text-xs font-bold text-txt-tertiary uppercase mb-2 tracking-wider px-2">
|
<h2 className="text-xs font-bold text-txt-tertiary mb-2 tracking-wider px-2">
|
||||||
Active — {activeFriends.length}
|
Active — {activeFriends.length}
|
||||||
</h2>
|
</h2>
|
||||||
{activeFriends.map(f => renderActivityFriend(f))}
|
{activeFriends.map(f => renderActivityFriend(f))}
|
||||||
@@ -257,7 +257,7 @@ export function FriendsPage({ mobile }: FriendsPageProps) {
|
|||||||
)}
|
)}
|
||||||
{idleFriends.length > 0 && (
|
{idleFriends.length > 0 && (
|
||||||
<div className="mb-4">
|
<div className="mb-4">
|
||||||
<h2 className="text-xs font-bold text-txt-tertiary uppercase mb-2 tracking-wider px-2">
|
<h2 className="text-xs font-bold text-txt-tertiary mb-2 tracking-wider px-2">
|
||||||
Online — {idleFriends.length}
|
Online — {idleFriends.length}
|
||||||
</h2>
|
</h2>
|
||||||
{idleFriends.map(f => renderActivityFriend(f))}
|
{idleFriends.map(f => renderActivityFriend(f))}
|
||||||
@@ -265,7 +265,7 @@ export function FriendsPage({ mobile }: FriendsPageProps) {
|
|||||||
)}
|
)}
|
||||||
{offlineActivityFriends.length > 0 && (
|
{offlineActivityFriends.length > 0 && (
|
||||||
<div>
|
<div>
|
||||||
<h2 className="text-xs font-bold text-txt-tertiary uppercase mb-2 tracking-wider px-2">
|
<h2 className="text-xs font-bold text-txt-tertiary mb-2 tracking-wider px-2">
|
||||||
Offline — {offlineActivityFriends.length}
|
Offline — {offlineActivityFriends.length}
|
||||||
</h2>
|
</h2>
|
||||||
{offlineActivityFriends.map(f => renderActivityFriend(f, true))}
|
{offlineActivityFriends.map(f => renderActivityFriend(f, true))}
|
||||||
@@ -503,7 +503,7 @@ function AddFriendTab({
|
|||||||
<svg width="20" height="20" viewBox="0 0 24 24" fill="currentColor" className="text-txt-tertiary">
|
<svg width="20" height="20" viewBox="0 0 24 24" fill="currentColor" className="text-txt-tertiary">
|
||||||
<path d="M15 12c2.21 0 4-1.79 4-4s-1.79-4-4-4-4 1.79-4 4 1.79 4 4 4zm-9-2V7H4v3H1v2h3v3h2v-3h3v-2H6zm9 4c-2.67 0-8 1.34-8 4v2h16v-2c0-2.66-5.33-4-8-4z" />
|
<path d="M15 12c2.21 0 4-1.79 4-4s-1.79-4-4-4-4 1.79-4 4 1.79 4 4 4zm-9-2V7H4v3H1v2h3v3h2v-3h3v-2H6zm9 4c-2.67 0-8 1.34-8 4v2h16v-2c0-2.66-5.33-4-8-4z" />
|
||||||
</svg>
|
</svg>
|
||||||
<h2 className="text-base font-bold text-txt-primary uppercase">Find People</h2>
|
<h2 className="text-base font-bold text-txt-primary">Find People</h2>
|
||||||
</div>
|
</div>
|
||||||
<p className="text-sm text-txt-tertiary mb-4">Search by username or use <span className="font-medium text-txt-secondary">user@instance</span> to add someone directly.</p>
|
<p className="text-sm text-txt-tertiary mb-4">Search by username or use <span className="font-medium text-txt-secondary">user@instance</span> to add someone directly.</p>
|
||||||
|
|
||||||
@@ -555,7 +555,7 @@ function AddFriendTab({
|
|||||||
<svg width="18" height="18" viewBox="0 0 24 24" fill="currentColor" className="text-txt-tertiary">
|
<svg width="18" height="18" viewBox="0 0 24 24" fill="currentColor" className="text-txt-tertiary">
|
||||||
<path d="M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2zm0 18c-4.41 0-8-3.59-8-8s3.59-8 8-8 8 3.59 8 8-3.59 8-8 8zm-5.5-2.5l7.51-3.49L17.5 6.5 9.99 9.99 6.5 17.5zm5.5-6.6c.61 0 1.1.49 1.1 1.1s-.49 1.1-1.1 1.1-1.1-.49-1.1-1.1.49-1.1 1.1-1.1z" />
|
<path d="M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2zm0 18c-4.41 0-8-3.59-8-8s3.59-8 8-8 8 3.59 8 8-3.59 8-8 8zm-5.5-2.5l7.51-3.49L17.5 6.5 9.99 9.99 6.5 17.5zm5.5-6.6c.61 0 1.1.49 1.1 1.1s-.49 1.1-1.1 1.1-1.1-.49-1.1-1.1.49-1.1 1.1-1.1z" />
|
||||||
</svg>
|
</svg>
|
||||||
<span className="text-xs font-semibold uppercase tracking-wider text-txt-tertiary">Discover People</span>
|
<span className="text-xs font-semibold tracking-wider text-txt-tertiary">Discover People</span>
|
||||||
</div>
|
</div>
|
||||||
)}
|
)}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user