From ba49f7c1d5dd417d6cd89afa88ebb2119dc7c4ba Mon Sep 17 00:00:00 2001 From: Leon <> Date: Mon, 31 Jan 2022 20:15:31 +0200 Subject: [PATCH] changes --- .../Modals/AddUserModal/AddUserModal.sass | 31 ++++++++----- .../Modals/AddUserModal/AddUserModal.tsx | 44 +++++++++---------- ui/src/components/assets/copy-enabled.svg | 25 ++++------- ui/src/helpers/commonStyle.ts | 3 ++ 4 files changed, 52 insertions(+), 51 deletions(-) diff --git a/ui/src/components/Modals/AddUserModal/AddUserModal.sass b/ui/src/components/Modals/AddUserModal/AddUserModal.sass index 71f71a372..39b0ff0a4 100644 --- a/ui/src/components/Modals/AddUserModal/AddUserModal.sass +++ b/ui/src/components/Modals/AddUserModal/AddUserModal.sass @@ -1,13 +1,13 @@ @import '../../../variables.module' @mixin generate-icon - display: block - text-indent: -9999px - width: 26px - height: 26px - background-repeat: no-repeat - background-size: 26px - margin-right: 10px + display: block; + text-indent: -9999px; + width: 17px; + height: 17px; + background-repeat: no-repeat; + background-size: 19px; + background-size: cover; .invite-link &-row @@ -24,8 +24,10 @@ &-field width: 80% max-width: 435px - + .generate-link-button + &.MuiButtonBase-root + padding: 6.5px 13px &:disabled background: #BCC6DD; .generate-link-button__icon @@ -55,7 +57,14 @@ .search-workspace width: 186px -.u-margin-left - margin-left : 20px - +.u-input-padding + & .MuiInputLabel-outlined.MuiInputLabel-marginDense + transform: translate(14px, 8px) scale(1); + & .MuiInputLabel-outlined.MuiInputLabel-shrink + transform: translate(14px, -6px) scale(0.75); + font-size: 12px; + &.MuiOutlinedInput-input, &.MuiSelect-outlined, + padding-top: 5.5px + padding-bottom: 5.5px + font-size: 12px; \ No newline at end of file diff --git a/ui/src/components/Modals/AddUserModal/AddUserModal.tsx b/ui/src/components/Modals/AddUserModal/AddUserModal.tsx index 39ce42118..a0f78a8fd 100644 --- a/ui/src/components/Modals/AddUserModal/AddUserModal.tsx +++ b/ui/src/components/Modals/AddUserModal/AddUserModal.tsx @@ -96,7 +96,6 @@ export const AddUserModal: FC = ({isOpen, onCloseModal, userD const updateUser = async() =>{ try { const res = await api.updateUser(userDataModel) - onClose() toast.success("User has been modified") } catch (error) { toast.error("Error accured modifing user") @@ -173,27 +172,11 @@ export const AddUserModal: FC = ({isOpen, onCloseModal, userD const handleCopyinviteLink = (e) => {navigator.clipboard.writeText(invite.link)} const addUsermodalCustomActions = <> - {showGenerateButton() && } - { - isEditMode && - } -
- {isShowInviteLink() && +
+ {isShowInviteLink() && Invite link - @@ -202,9 +185,22 @@ export const AddUserModal: FC = ({isOpen, onCloseModal, userD } label="Invite link"/> } - {!isEditMode && isShowInviteLink() && } + {!isEditMode && isShowInviteLink() && } + } + {isEditMode && + }
@@ -226,9 +222,9 @@ export const AddUserModal: FC = ({isOpen, onCloseModal, userD render={({ field }) => } /> */} - + User Role - None diff --git a/ui/src/components/assets/copy-enabled.svg b/ui/src/components/assets/copy-enabled.svg index d3c2fbb0c..7d8127163 100644 --- a/ui/src/components/assets/copy-enabled.svg +++ b/ui/src/components/assets/copy-enabled.svg @@ -1,17 +1,10 @@ - - - - - - - - - - - - - - - - + + + + + + + + + diff --git a/ui/src/helpers/commonStyle.ts b/ui/src/helpers/commonStyle.ts index 09a616635..d26e70a08 100644 --- a/ui/src/helpers/commonStyle.ts +++ b/ui/src/helpers/commonStyle.ts @@ -13,6 +13,9 @@ export const useCommonStyles = makeStyles(() => ({ "&:hover": { backgroundColor: "#205cf5", }, + "&:disabled":{ + backgroundColor: "rgba(0, 0, 0, 0.26)" + } }, outlinedButton: { backgroundColor: "transparent",