mirror of
https://github.com/pacnpal/thrilltrack-explorer.git
synced 2025-12-22 03:51:12 -05:00
Implement Phase 4 optimizations
This commit is contained in:
@@ -34,6 +34,12 @@ function getRoleLabel(role: string): string {
|
||||
};
|
||||
return isValidRole(role) ? labels[role] : role;
|
||||
}
|
||||
interface ProfileSearchResult {
|
||||
user_id: string;
|
||||
username: string;
|
||||
display_name?: string;
|
||||
}
|
||||
|
||||
interface UserRole {
|
||||
id: string;
|
||||
user_id: string;
|
||||
@@ -50,7 +56,7 @@ export function UserRoleManager() {
|
||||
const [searchTerm, setSearchTerm] = useState('');
|
||||
const [newUserSearch, setNewUserSearch] = useState('');
|
||||
const [newRole, setNewRole] = useState('');
|
||||
const [searchResults, setSearchResults] = useState<any[]>([]);
|
||||
const [searchResults, setSearchResults] = useState<ProfileSearchResult[]>([]);
|
||||
const [actionLoading, setActionLoading] = useState<string | null>(null);
|
||||
const {
|
||||
user
|
||||
|
||||
Reference in New Issue
Block a user