feat: implement club admin dashboard with activity feed and settings
This commit is contained in:
@@ -231,6 +231,32 @@ export default function AdminPlayersPage() {
|
||||
</div>
|
||||
)}
|
||||
|
||||
{/* Search and Filter Controls */}
|
||||
<div className="bg-white shadow rounded-lg p-4 mb-4">
|
||||
<div className="flex items-center space-x-4">
|
||||
<div className="flex-1">
|
||||
<input
|
||||
type="text"
|
||||
name="search"
|
||||
placeholder="Search players by name..."
|
||||
className="w-full px-3 py-2 border border-gray-300 rounded-md shadow-sm focus:outline-none focus:ring-green-500 focus:border-green-500"
|
||||
onChange={async (e) => {
|
||||
const search = e.target.value
|
||||
try {
|
||||
const response = await fetch(`/api/players?search=${encodeURIComponent(search)}`)
|
||||
if (response.ok) {
|
||||
const data = await response.json()
|
||||
setPlayers(data)
|
||||
}
|
||||
} catch (err) {
|
||||
console.error('Search failed:', err)
|
||||
}
|
||||
}}
|
||||
/>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
{/* Player Table */}
|
||||
<div className="bg-white shadow rounded-lg overflow-hidden">
|
||||
<table className="min-w-full divide-y divide-gray-200">
|
||||
|
||||
Reference in New Issue
Block a user