Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix widget columns configuration #79

Merged

Conversation

michalskrzypek
Copy link
Contributor

Fix widget columns configuration; change TextField to NumberField component

Copy link
Contributor

@szymon-owczarzak szymon-owczarzak left a comment

Choose a reason for hiding this comment

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

Looking good

Copy link
Collaborator

@goeson00 goeson00 left a comment

Choose a reason for hiding this comment

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

Minor changes for consistency.

@@ -8,10 +8,11 @@ import { useFormData } from '../../hooks';
import { getBoards } from '../../selectors';
import { createValidationSchema } from './validators';
import { trimLeadingZeros } from '../helpers';
import NumberInput from "../widgets/dialogFields/NumberInput";
Copy link
Collaborator

Choose a reason for hiding this comment

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

Add empty line between components and other imports. Components should be imported as the last ones.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

done

@@ -90,7 +90,7 @@ const WidgetForm = ({ renderActions, ...initialFormValues }) => {
shrink: true
}}
inputProps={{
min: ROWS_MIN,
min: WIDGET_ROWS_MIN,
max: 4,
Copy link
Collaborator

Choose a reason for hiding this comment

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

If we have constant for min, we should have for max if it is not dynamic.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

done

@michalskrzypek michalskrzypek merged commit 7c11bce into master Oct 28, 2019
@michalskrzypek michalskrzypek deleted the bugfix/CLAN6-157-Widget-columns-misconfiguration branch October 28, 2019 16:37
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants