mirror of
https://github.com/wgh136/nysoure.git
synced 2025-09-27 04:17:23 +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)}
|
onChange={(e) => delayedSetSearchKeyword(e.target.value)}
|
||||||
/>
|
/>
|
||||||
<span className="flex-1" />
|
<span className="flex-1" />
|
||||||
<button
|
{username == app.user?.username && <button
|
||||||
className="btn btn-primary btn-soft"
|
className="btn btn-primary btn-soft"
|
||||||
onClick={() => {
|
onClick={() => {
|
||||||
navigate("/create-collection");
|
navigate("/create-collection");
|
||||||
@@ -420,7 +420,7 @@ function Collections({ username }: { username?: string }) {
|
|||||||
>
|
>
|
||||||
<MdOutlineAdd size={20} className="inline-block mr-1" />
|
<MdOutlineAdd size={20} className="inline-block mr-1" />
|
||||||
{t("Create")}
|
{t("Create")}
|
||||||
</button>
|
</button>}
|
||||||
</div>
|
</div>
|
||||||
<CollectionsList
|
<CollectionsList
|
||||||
username={username}
|
username={username}
|
||||||
|
Reference in New Issue
Block a user