-
Notifications
You must be signed in to change notification settings - Fork 28
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
3b155e5
commit 84cf9aa
Showing
3 changed files
with
12 additions
and
25 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -191,16 +191,10 @@ let inviteEmail = FormRenderer.makeFieldInfo( | |
~name="email_list", | ||
~customInput=(~input, ~placeholder as _) => { | ||
let showPlaceHolder = input.value->LogicUtils.getArrayFromJson([])->Array.length === 0 | ||
InputFields.textTagInput( | ||
~input, | ||
~placeholder=showPlaceHolder ? "Eg: [email protected], [email protected]" : "", | ||
~customButtonStyle="!rounded-full !px-4", | ||
~seperateByComma=true, | ||
) | ||
<PillInput name="email_list" placeholder={showPlaceHolder ? "Eg: [email protected]" : ""} /> | ||
}, | ||
~isRequired=true, | ||
) | ||
|
||
module SwitchMerchantForUserAction = { | ||
@react.component | ||
let make = (~userInfoValue: UserManagementTypes.userDetailstype) => { | ||
|
17 changes: 0 additions & 17 deletions
17
src/screens/UserManagement/UserRevamp/UserManagementUtils.res
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,22 +1,5 @@ | ||
let errorClass = "text-sm leading-4 font-medium text-start ml-1 mt-2" | ||
|
||
let inviteEmail = FormRenderer.makeFieldInfo( | ||
~label="Enter email", | ||
~name="emailList", | ||
~customInput=( | ||
(~input, ~placeholder as _) => { | ||
let showPlaceHolder = input.value->LogicUtils.getArrayFromJson([])->Array.length === 0 | ||
InputFields.textTagInput( | ||
~input, | ||
~placeholder=showPlaceHolder ? "Eg: [email protected], [email protected]" : "", | ||
~customButtonStyle="!rounded-full !px-4", | ||
~seperateByComma=true, | ||
) | ||
} | ||
)->InputFields.iconFieldWithMessageDes(~description="Press Enter to add more"), | ||
~isRequired=true, | ||
) | ||
|
||
let createCustomRole = FormRenderer.makeFieldInfo( | ||
~label="Enter custom role name", | ||
~name="role_name", | ||
|