mirror of
https://github.com/wgh136/nysoure.git
synced 2025-09-27 12:17:24 +00:00
hide the create collection button if the user is visiting another user's page.
This commit is contained in:
@@ -412,7 +412,7 @@ function Collections({ username }: { username?: string }) {
|
||||
onChange={(e) => delayedSetSearchKeyword(e.target.value)}
|
||||
/>
|
||||
<span className="flex-1" />
|
||||
<button
|
||||
{username == app.user?.username && <button
|
||||
className="btn btn-primary btn-soft"
|
||||
onClick={() => {
|
||||
navigate("/create-collection");
|
||||
@@ -420,7 +420,7 @@ function Collections({ username }: { username?: string }) {
|
||||
>
|
||||
<MdOutlineAdd size={20} className="inline-block mr-1" />
|
||||
{t("Create")}
|
||||
</button>
|
||||
</button>}
|
||||
</div>
|
||||
<CollectionsList
|
||||
username={username}
|
||||
|
Reference in New Issue
Block a user