Skip to content

Commit

Permalink
Fix linting errors.
Browse files Browse the repository at this point in the history
  • Loading branch information
lublagg committed Sep 13, 2023
1 parent 2007ab9 commit 7d8dee0
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 8 deletions.
6 changes: 3 additions & 3 deletions src/components/attribute-options.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -24,9 +24,9 @@ export const AttributeOptions: React.FC<IProps> = (props) => {
if (key === "cropUnits" || key === "crops") {
return classnames(css.checkOptions, css.narrow);
} else {
return classnames(css.checkOptions, css.vertical)
return classnames(css.checkOptions, css.vertical);
}
}
};

return (
<>
Expand All @@ -44,7 +44,7 @@ export const AttributeOptions: React.FC<IProps> = (props) => {
/>
</div>
</>
)
);
})
}
</>
Expand Down
4 changes: 2 additions & 2 deletions src/components/dropdown.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -31,9 +31,9 @@ export const Dropdown: React.FC<IProps> = (props) => {
} else if (sectionName === "Attributes") {
return (
""
)
);
}
}
};

const commonProps = {handleSetSelectedOptions, selectedOptions};

Expand Down
5 changes: 3 additions & 2 deletions src/components/place-options.tsx
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import React from "react";
import { placeOptions, stateOptions } from "./constants";
import { IStateOptions } from "./types"
import { IStateOptions } from "./types";
import { Options } from "./options";

import css from "./options.scss";
Expand All @@ -13,7 +13,8 @@ interface IProps {
export const PlaceOptions: React.FC<IProps> = (props) => {
const {handleSetSelectedOptions, selectedOptions} = props;

const commonProps = {selectedOptions, handleSetSelectedOptions}
const commonProps = {selectedOptions, handleSetSelectedOptions};

return (
<>
<div className={css.instruction}>{placeOptions.label}:</div>
Expand Down
2 changes: 1 addition & 1 deletion src/components/types.ts
Original file line number Diff line number Diff line change
Expand Up @@ -16,4 +16,4 @@ export interface IAttrOptions {
label: string|null,
options: string[]
instructions: string|null
}
}

0 comments on commit 7d8dee0

Please sign in to comment.