Update, profile and part of admin

This commit is contained in:
EdiFarcas
2025-04-29 19:33:35 +03:00
parent 6cff4acc36
commit 9a33acbf53
9 changed files with 120 additions and 94 deletions
+14 -14
View File
@@ -71,7 +71,7 @@ export default function AdminClient({ email }: AdminClientProps) {
/>
<input
type="number"
placeholder="Value"
placeholder="Value in Dollars"
value={giveaway.value || ""}
onChange={(e) => setGiveaway({ ...giveaway, value: Number(e.target.value) })}
className="block w-full mt-2 p-2 border rounded bg-gray-700 text-gray-200"
@@ -95,24 +95,24 @@ export default function AdminClient({ email }: AdminClientProps) {
<div className="p-4 text-white bg-gray-800 shadow rounded">
<h2 className="text-xl font-semibold">Update User Coins</h2>
<input
type="text"
placeholder="User ID"
value={userCoins.userId}
onChange={(e) => setUserCoins({ ...userCoins, userId: e.target.value })}
className="block w-full mt-2 p-2 border rounded bg-gray-700 text-gray-200"
type="text"
placeholder="YouTube Video URL"
value={userCoins.userId}
onChange={(e) => setUserCoins({ ...userCoins, userId: e.target.value })}
className="block w-full mt-2 p-2 border rounded bg-gray-700 text-gray-200"
/>
<input
type="number"
placeholder="Coins"
value={userCoins.coins}
onChange={(e) => setUserCoins({ ...userCoins, coins: Number(e.target.value) })}
className="block w-full mt-2 p-2 border rounded bg-gray-700 text-gray-200"
type="number"
placeholder="Coins"
value={userCoins.coins}
onChange={(e) => setUserCoins({ ...userCoins, coins: Number(e.target.value) })}
className="block w-full mt-2 p-2 border rounded bg-gray-700 text-gray-200"
/>
<button
onClick={handleUpdateCoins}
className="mt-4 bg-green-600 text-white px-4 py-2 rounded"
onClick={handleUpdateCoins}
className="mt-4 bg-green-600 text-white px-4 py-2 rounded"
>
Update Coins
Update Coins
</button>
</div>
</div>