Skip to content
This repository was archived by the owner on Mar 13, 2025. It is now read-only.

Jobs and Resource Bookings Management #76

Merged
merged 7 commits into from
Feb 7, 2021
Merged

Conversation

maxceem
Copy link
Contributor

@maxceem maxceem commented Feb 4, 2021

No description provided.

};

FormField.prototype = {
fields: PT.arrayOf(
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

FormField doesn't accept fields it accept field - one value.

);
};

FormField.prototype = {
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It should be propTypes not prototype.

readonly: PT.string,
})
).isRequired,
isGroupField: PT.bool,
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Let's remove this prop isGroupField together with class "field-group-field". Instead of this parent component should put this field into a group.

Comment on lines 21 to 28
input:not([type="checkbox"]),
textarea {
margin-bottom: 0px;
}

input:read-only {
margin-top: 24px;
}
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can we put these styles into respective components TextInput, TextArea and so one where we need them. This common component should not add styles for particular field types.

Also, we should not use global selectors like input and textarea. We should use classes instead. Or at least.someClass input.

return (
<textarea
auto
className={`TextArea ${props.className} ${props.value ? "" : "empty"}`}
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can we use styleName instead of className?

Comment on lines +3 to +9
textarea {
resize: none;
background-color: #ffffff;
border: 1px solid #aaaaaa;
border-radius: 6px;
height: 320px;
}
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Let's not define global styles, and use some class name instead.

Comment on lines +31 to +35
button {
height: 40px;
border-radius: 20px;
min-width: 78px;
}
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We already have styles inside Button component. Do we really need this? we can define <Button size={BUTTON_SIZE.MEDIUM} />

@maxceem maxceem changed the base branch from dev-1_5 to dev February 4, 2021 19:35
@maxceem maxceem merged commit 4958678 into dev Feb 7, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants