Improvements to UsersContainer.tsx
This commit is contained in:
parent
95c55e7d28
commit
ed73f6a020
6 changed files with 93 additions and 29 deletions
|
@ -14,6 +14,7 @@ export interface User {
|
|||
language: string;
|
||||
rootAdmin: boolean;
|
||||
tfa: boolean;
|
||||
roleName: string;
|
||||
createdAt: Date;
|
||||
updatedAt: Date;
|
||||
}
|
||||
|
|
|
@ -130,6 +130,7 @@ export const rawDataToUser = ({ attributes }: FractalResponseData): User => ({
|
|||
language: attributes.language,
|
||||
rootAdmin: attributes.root_admin,
|
||||
tfa: attributes['2fa'],
|
||||
roleName: attributes.role_name,
|
||||
createdAt: new Date(attributes.created_at),
|
||||
updatedAt: new Date(attributes.updated_at),
|
||||
});
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue