feat(users): add editable usernames (#715)

This commit is contained in:
Jakob Ankarhem
2021-01-27 00:09:42 +01:00
committed by GitHub
parent 82ac76b054
commit 20ca3f2f5f
19 changed files with 284 additions and 175 deletions

View File

@@ -2,17 +2,19 @@ import useSwr from 'swr';
import { hasPermission, Permission } from '../../server/lib/permissions';
import { UserType } from '../../server/constants/user';
export { Permission, UserType };
export interface User {
id: number;
username: string;
plexUsername?: string;
username?: string;
displayName: string;
email: string;
avatar: string;
permissions: number;
userType: number;
}
export { Permission, UserType };
interface UserHookResponse {
user?: User;
loading: boolean;