Skip to content

Commit

Permalink
Merge branch 'release/2.0.0-alpha.3'
Browse files Browse the repository at this point in the history
  • Loading branch information
twisty committed Sep 11, 2019
2 parents db069ca + 00696d6 commit 70f99c0
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 3 deletions.
6 changes: 4 additions & 2 deletions src/components/checkbox-group.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,7 @@ class CheckboxGroup extends React.Component<CheckboxGroupProps, {}> {
}`;

const controls = [] as JSX.Element[];
for(let i = 0; i < options.length; i++) {
for (let i = 0; i < options.length; i++) {
const checkbox = options[i];
const checked = value.indexOf(checkbox.value) !== -1;
const isDisabled = checkbox.disabled || disabled;
Expand All @@ -97,7 +97,9 @@ class CheckboxGroup extends React.Component<CheckboxGroupProps, {}> {
<label className="custom-control-label" htmlFor={inputId}>
{checkbox.label}
</label>
{isLast && showErrors ? <ErrorMessages messages={errorMessages} /> : null}
{isLast && showErrors ? (
<ErrorMessages messages={errorMessages} />
) : null}
</div>
);
controls.push(control);
Expand Down
4 changes: 3 additions & 1 deletion src/components/select.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,9 @@ class Select extends React.Component<SelectProps, {}> {
const control = (
<SelectControl
{...inputProps}
className={classNames(markAsInvalid ? ['is-invalid', className] : className)}
className={classNames(
markAsInvalid ? ['is-invalid', className] : className,
)}
elementRef={this.props.elementRef}
id={id}
name={name}
Expand Down
3 changes: 3 additions & 0 deletions src/hoc/component.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,9 @@ interface RequiredFromOriginalComponentProps {
disabled: boolean;
id: string;
label: React.ReactNode;
/* eslint-disable @typescript-eslint/no-explicit-any */
componentRef: React.RefObject<any>;
/* eslint-enable @typescript-eslint/no-explicit-any */
}

/**
Expand All @@ -60,6 +62,7 @@ interface RequiredFromOriginalComponentProps {
* the form, while retaining the ability to override the prop on a per-component
* basis.
*/
// eslint-disable-next-line @typescript-eslint/explicit-function-return-type
const withFRC = <TOriginalProps extends {}>(
Component:
| React.ComponentClass<TOriginalProps>
Expand Down

0 comments on commit 70f99c0

Please sign in to comment.