Sucess Message Update
This commit is contained in:
@@ -151,9 +151,8 @@ function Mobile() {
|
|||||||
method: "POST",
|
method: "POST",
|
||||||
body: formData,
|
body: formData,
|
||||||
})
|
})
|
||||||
.then((res) => res.json())
|
.then((res) => {
|
||||||
.then((data) => {
|
if (res.ok) {
|
||||||
if (data.message === "Friend removed successfully") {
|
|
||||||
alert("Friend removed successfully!");
|
alert("Friend removed successfully!");
|
||||||
} else {
|
} else {
|
||||||
alert("Failed to remove friend.");
|
alert("Failed to remove friend.");
|
||||||
@@ -211,6 +210,27 @@ function Mobile() {
|
|||||||
</form>
|
</form>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
|
{/* Points and Cosmetics Owned */}
|
||||||
|
<div className="bg-[color:var(--color-surface-800)] rounded-xl px-6 py-5 my-6 shadow-md">
|
||||||
|
<h2 className="text-3xl font-bold tracking-[-.01em] text-[color:var(--color-warning-300)] mb-4">
|
||||||
|
Points & Cosmetics
|
||||||
|
</h2>
|
||||||
|
|
||||||
|
{/* Total Points */}
|
||||||
|
<div className="mb-4">
|
||||||
|
<p className="text-lg text-neutral-100">
|
||||||
|
<strong>Total Points:</strong> {points}
|
||||||
|
</p>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
{/* Cosmetics Owned */}
|
||||||
|
<div>
|
||||||
|
<p className="text-lg text-neutral-100">
|
||||||
|
<strong>Cosmetics Owned:</strong> {session?.inventory?.length || 0}
|
||||||
|
</p>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
|
||||||
{/* Friends, Friend Requests, and Send Friend Request Section */}
|
{/* Friends, Friend Requests, and Send Friend Request Section */}
|
||||||
<div className="bg-[color:var(--color-surface-800)] rounded-xl px-6 py-5 my-6 shadow-md">
|
<div className="bg-[color:var(--color-surface-800)] rounded-xl px-6 py-5 my-6 shadow-md">
|
||||||
<h2 className="text-3xl font-bold tracking-[-.01em] text-[color:var(--color-warning-300)] mb-4">
|
<h2 className="text-3xl font-bold tracking-[-.01em] text-[color:var(--color-warning-300)] mb-4">
|
||||||
|
|||||||
Reference in New Issue
Block a user