+
# of resources |
@@ -59,7 +64,7 @@ function EditRoleForm({ submitForm, role }) {
@@ -67,7 +72,10 @@ function EditRoleForm({ submitForm, role }) {
{
+ input.onChange(v);
+ onRoleChange(getState());
+ }}
onBlur={input.onBlur}
onFocus={input.onFocus}
min="1"
@@ -79,7 +87,7 @@ function EditRoleForm({ submitForm, role }) {
|
@@ -87,7 +95,10 @@ function EditRoleForm({ submitForm, role }) {
{
+ input.onChange(v);
+ onRoleChange(getState());
+ }}
onBlur={input.onBlur}
onFocus={input.onFocus}
min="4"
@@ -105,7 +116,10 @@ function EditRoleForm({ submitForm, role }) {
{
+ props.input.onChange(v);
+ onRoleChange(getState());
+ }}
onBlur={props.input.onBlur}
onFocus={props.input.onFocus}
/>
@@ -130,14 +144,6 @@ function EditRoleForm({ submitForm, role }) {
|
-
);
}}
diff --git a/src/routes/CreateNewTeam/components/EditRoleForm/styles.module.scss b/src/routes/CreateNewTeam/components/EditRoleForm/styles.module.scss
index 1c47d84f..d9f635f9 100644
--- a/src/routes/CreateNewTeam/components/EditRoleForm/styles.module.scss
+++ b/src/routes/CreateNewTeam/components/EditRoleForm/styles.module.scss
@@ -36,7 +36,13 @@
.role-row {
td {
+ > div {
+ margin-left: auto;
+ margin-right: auto;
+ }
+
padding: 18px 18px 18px 0;
+ width: 30%;
vertical-align: top;
@include font-barlow;
font-weight: 600;
@@ -90,11 +96,12 @@
}
}
-.modal-body {
+.table-container {
> button {
margin: 0 auto;
}
- overflow-x: auto;
+ padding: 0 30px;
+ width: 80%;
textarea {
height: 95px;
}
diff --git a/src/routes/CreateNewTeam/components/EditRoleForm/utils/validator.js b/src/routes/CreateNewTeam/components/EditRoleForm/utils/validator.js
index 60cb16a8..704f1099 100644
--- a/src/routes/CreateNewTeam/components/EditRoleForm/utils/validator.js
+++ b/src/routes/CreateNewTeam/components/EditRoleForm/utils/validator.js
@@ -1,8 +1,8 @@
const composeValidators = (...validators) => (value) =>
validators.reduce((error, validator) => error || validator(value), undefined);
-const validateMin = (min) => (value) =>
- isNaN(value) || value >= min ? undefined : `Should be greater than ${min}`;
+const validateMin = (min, message) => (value) =>
+ isNaN(value) || value >= min ? undefined : message;
const validateName = (name) => {
if (!name || name.trim().length === 0) {
diff --git a/src/routes/CreateNewTeam/components/ResultCard/index.jsx b/src/routes/CreateNewTeam/components/ResultCard/index.jsx
index 38bd0690..8aa4fa42 100644
--- a/src/routes/CreateNewTeam/components/ResultCard/index.jsx
+++ b/src/routes/CreateNewTeam/components/ResultCard/index.jsx
@@ -27,7 +27,7 @@ function formatPercent(value) {
return `${Math.round(value * 100)}%`;
}
-function ResultCard({ role, currentRole, onSubmitEditRole }) {
+function ResultCard({ role, currentRole, onSaveEditRole }) {
const {
numberOfMembersAvailable,
isExternalMember,
@@ -269,7 +269,7 @@ function ResultCard({ role, currentRole, onSubmitEditRole }) {
{currentRole && (
-