Skip to content

Commit b3cf9fe

Browse files
committed
search or user chip
1 parent 38b5787 commit b3cf9fe

File tree

1 file changed

+7
-2
lines changed

1 file changed

+7
-2
lines changed

client/src/components/user/UsersPage.tsx

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -28,8 +28,13 @@ const UsersPage = () => {
2828

2929
<p>This page is private. You can access it only when logged in.</p>
3030
<div className="mt-4 mb-4">
31-
<div className="mb-4">{userId && <ChipUserId userId={userId} />}</div>
32-
<Search />
31+
{userId ? (
32+
<div className="mb-4">
33+
<ChipUserId userId={userId} />
34+
</div>
35+
) : (
36+
<Search />
37+
)}
3338
</div>
3439
<div className="overflow-x-auto w-full">
3540
<table className="table-auto border-collapse w-full">

0 commit comments

Comments
 (0)