Improvements to UsersContainer.tsx

This commit is contained in:
Matthew Penner 2021-01-04 12:44:44 -07:00
parent 95c55e7d28
commit ed73f6a020
6 changed files with 93 additions and 29 deletions

View file

@ -14,6 +14,7 @@ export interface User {
language: string;
rootAdmin: boolean;
tfa: boolean;
roleName: string;
createdAt: Date;
updatedAt: Date;
}

View file

@ -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),
});