main
|
Last change
on this file since 3ae4bab was b62cefc, checked in by kikisrbinoska <srbinoskakristina07@…>, 4 months ago |
|
Added frontend and imporoved AI Suggestions service
|
-
Property mode
set to
100644
|
|
File size:
1.2 KB
|
| Line | |
|---|
| 1 | import React from 'react'
|
|---|
| 2 | import { useNavigate } from 'react-router-dom'
|
|---|
| 3 | import { ArrowLeft, Users } from 'lucide-react'
|
|---|
| 4 | import { useAuthStore } from '../../store/authStore'
|
|---|
| 5 | import { UserTable } from '../../components/admin/UserTable'
|
|---|
| 6 | import { Button } from '../../components/ui/Button'
|
|---|
| 7 |
|
|---|
| 8 | export const AdminUsersPage: React.FC = () => {
|
|---|
| 9 | const navigate = useNavigate()
|
|---|
| 10 | const { allUsers } = useAuthStore()
|
|---|
| 11 |
|
|---|
| 12 | return (
|
|---|
| 13 | <div className="max-w-7xl mx-auto px-4 py-8">
|
|---|
| 14 | <div className="flex items-center gap-3 mb-8">
|
|---|
| 15 | <button onClick={() => navigate('/admin')} className="text-slate-400 hover:text-white transition-colors">
|
|---|
| 16 | <ArrowLeft size={20} />
|
|---|
| 17 | </button>
|
|---|
| 18 | <div>
|
|---|
| 19 | <h1 className="font-serif text-2xl font-bold text-white">User Management</h1>
|
|---|
| 20 | <p className="text-slate-400 text-sm mt-0.5">{allUsers.length} registered users</p>
|
|---|
| 21 | </div>
|
|---|
| 22 | </div>
|
|---|
| 23 |
|
|---|
| 24 | <div className="bg-slate-900 border border-slate-700 rounded-2xl p-6">
|
|---|
| 25 | <div className="flex items-center gap-2 mb-6">
|
|---|
| 26 | <Users size={18} className="text-blue-400" />
|
|---|
| 27 | <h2 className="text-white font-semibold">All Users</h2>
|
|---|
| 28 | </div>
|
|---|
| 29 | <UserTable />
|
|---|
| 30 | </div>
|
|---|
| 31 | </div>
|
|---|
| 32 | )
|
|---|
| 33 | }
|
|---|
Note:
See
TracBrowser
for help on using the repository browser.