diff --git a/new-lamassu-admin/src/pages/UserManagement/UserManagement.js b/new-lamassu-admin/src/pages/UserManagement/UserManagement.js index a79f3270..126dd285 100644 --- a/new-lamassu-admin/src/pages/UserManagement/UserManagement.js +++ b/new-lamassu-admin/src/pages/UserManagement/UserManagement.js @@ -6,10 +6,13 @@ import * as R from 'ramda' import React, { useReducer, useState, useContext } from 'react' import AppContext from 'src/AppContext' -import { Link } from 'src/components/buttons' +import { ActionButton, Link } from 'src/components/buttons' import { Switch } from 'src/components/inputs' import TitleSection from 'src/components/layout/TitleSection' import DataTable from 'src/components/tables/DataTable' +import { ReactComponent as KeyIcon } from 'src/styling/icons/button/key/zodiac.svg' +import { ReactComponent as LockIcon } from 'src/styling/icons/button/lock/zodiac.svg' +import { ReactComponent as UserRoleIcon } from 'src/styling/icons/button/user-role/zodiac.svg' import styles from './UserManagement.styles' import ChangeRoleModal from './modals/ChangeRoleModal' @@ -153,35 +156,34 @@ const Users = () => { size: 'sm', view: u => { return ( - <> - + { setUserInfo(u) dispatch({ type: 'open', payload: 'showResetPasswordModal' }) - }} - /> - + Reset password + + { setUserInfo(u) dispatch({ type: 'open', payload: 'showReset2FAModal' }) - }} - /> - + Reset 2FA + + { setUserInfo(u) generateAttestationOptions({ @@ -189,9 +191,10 @@ const Users = () => { userID: u.id } }) - }} - /> - + }}> + Add FIDO + + ) } }, diff --git a/new-lamassu-admin/src/pages/UserManagement/UserManagement.styles.js b/new-lamassu-admin/src/pages/UserManagement/UserManagement.styles.js index 9366e555..6859dd97 100644 --- a/new-lamassu-admin/src/pages/UserManagement/UserManagement.styles.js +++ b/new-lamassu-admin/src/pages/UserManagement/UserManagement.styles.js @@ -52,10 +52,6 @@ const styles = { fontFamily: fontPrimary, marginLeft: 10 }, - actionChip: { - backgroundColor: subheaderColor, - marginRight: 15 - }, info: { fontFamily: fontSecondary, textAlign: 'justify' @@ -118,6 +114,10 @@ const styles = { }, roleSwitch: { marginLeft: 15 + }, + actionButtonWrapper: { + display: 'flex', + gap: 12 } } diff --git a/new-lamassu-admin/src/styling/icons/button/key/white.svg b/new-lamassu-admin/src/styling/icons/button/key/white.svg new file mode 100644 index 00000000..ec28f490 --- /dev/null +++ b/new-lamassu-admin/src/styling/icons/button/key/white.svg @@ -0,0 +1,11 @@ + + + icon/button/key/white + + + + + + + + \ No newline at end of file diff --git a/new-lamassu-admin/src/styling/icons/button/key/zodiac.svg b/new-lamassu-admin/src/styling/icons/button/key/zodiac.svg new file mode 100644 index 00000000..cd9d1645 --- /dev/null +++ b/new-lamassu-admin/src/styling/icons/button/key/zodiac.svg @@ -0,0 +1,11 @@ + + + icon/button/key/zodiac + + + + + + + + \ No newline at end of file diff --git a/new-lamassu-admin/src/styling/icons/button/lock/white.svg b/new-lamassu-admin/src/styling/icons/button/lock/white.svg new file mode 100644 index 00000000..53b5e362 --- /dev/null +++ b/new-lamassu-admin/src/styling/icons/button/lock/white.svg @@ -0,0 +1,11 @@ + + + icon/button/lock/white + + + + + + + + \ No newline at end of file diff --git a/new-lamassu-admin/src/styling/icons/button/lock/zodiac.svg b/new-lamassu-admin/src/styling/icons/button/lock/zodiac.svg new file mode 100644 index 00000000..fd064efc --- /dev/null +++ b/new-lamassu-admin/src/styling/icons/button/lock/zodiac.svg @@ -0,0 +1,11 @@ + + + icon/button/lock/zodiac + + + + + + + + \ No newline at end of file diff --git a/new-lamassu-admin/src/styling/icons/button/user-role/white.svg b/new-lamassu-admin/src/styling/icons/button/user-role/white.svg new file mode 100644 index 00000000..13e5a9a5 --- /dev/null +++ b/new-lamassu-admin/src/styling/icons/button/user-role/white.svg @@ -0,0 +1,10 @@ + + + icon/button/user-role/white + + + + + + + \ No newline at end of file diff --git a/new-lamassu-admin/src/styling/icons/button/user-role/zodiac.svg b/new-lamassu-admin/src/styling/icons/button/user-role/zodiac.svg new file mode 100644 index 00000000..5a05f3a5 --- /dev/null +++ b/new-lamassu-admin/src/styling/icons/button/user-role/zodiac.svg @@ -0,0 +1,10 @@ + + + icon/button/user-role/zodiac + + + + + + + \ No newline at end of file