mirror of
https://github.com/EdiFarcas/Giveaway-app.git
synced 2026-06-29 07:00:52 +03:00
Update, profile and part of admin
This commit is contained in:
@@ -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>
|
||||
|
||||
Reference in New Issue
Block a user