fix: ui fixes
This commit is contained in:
@@ -76,7 +76,6 @@ export default function UsersPage() {
|
|||||||
<TR>
|
<TR>
|
||||||
<TH>User</TH>
|
<TH>User</TH>
|
||||||
<TH>Email</TH>
|
<TH>Email</TH>
|
||||||
<TH>Auth</TH>
|
|
||||||
<TH>Posts</TH>
|
<TH>Posts</TH>
|
||||||
<TH>Joined</TH>
|
<TH>Joined</TH>
|
||||||
<TH className="text-right">Actions</TH>
|
<TH className="text-right">Actions</TH>
|
||||||
@@ -84,7 +83,7 @@ export default function UsersPage() {
|
|||||||
</THead>
|
</THead>
|
||||||
<tbody>
|
<tbody>
|
||||||
{list.items.length === 0 && !list.loading ? (
|
{list.items.length === 0 && !list.loading ? (
|
||||||
<EmptyRow cols={6} label="No users found." />
|
<EmptyRow cols={5} label="No users found." />
|
||||||
) : (
|
) : (
|
||||||
list.items.map((u) => (
|
list.items.map((u) => (
|
||||||
<TR key={u.id}>
|
<TR key={u.id}>
|
||||||
@@ -107,10 +106,14 @@ export default function UsersPage() {
|
|||||||
</div>
|
</div>
|
||||||
</TD>
|
</TD>
|
||||||
<TD>
|
<TD>
|
||||||
{u.email ?? <span className="text-muted-foreground">—</span>}
|
<div className="space-y-1.5">
|
||||||
</TD>
|
<div>
|
||||||
<TD>
|
{u.email ?? (
|
||||||
<AuthIcons user={u} />
|
<span className="text-muted-foreground">—</span>
|
||||||
|
)}
|
||||||
|
</div>
|
||||||
|
<AuthIcons user={u} />
|
||||||
|
</div>
|
||||||
</TD>
|
</TD>
|
||||||
<TD>{u.post_count}</TD>
|
<TD>{u.post_count}</TD>
|
||||||
<TD className="whitespace-nowrap">{fmtDate(u.created_at)}</TD>
|
<TD className="whitespace-nowrap">{fmtDate(u.created_at)}</TD>
|
||||||
|
|||||||
Reference in New Issue
Block a user