Skip to content

Commit

Permalink
lint
Browse files Browse the repository at this point in the history
  • Loading branch information
fzhao99 committed Nov 27, 2024
1 parent 73267e5 commit 0c18ae3
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 9 deletions.
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
import { Icon } from "@trussworks/react-uswds";
import styles from "./customizeQuery.module.css";
import { GroupedValueSet } from "./customizeQueryUtils";
import CustomizeQueryCheckbox from "./vanityCheckbox/CustomizeQueryCheckbox";
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,25 +7,28 @@ import styles from "./checkbox.module.css";
type VanityCheckboxProps = CheckboxProps & {
isHeader?: boolean;
};
/**
* Vanity component wrapper around the checkbox component for the query customization
* checkboxes
* @param root0
* @param root0.id - ID for checkbox
* @param root0.checked - whether the checkbox is checked
* @param root0.onChange - handler for when the checkbox is clicked
* @param root0.isHeader - whether the checkbox is in the header
* @returns A checkbox for the customize query page
*/
const CustomizeQueryCheckbox: React.FC<VanityCheckboxProps> = ({
id,
label,
checked,
onChange,
className,
isHeader,
}) => {
return (
<Checkbox
id={id}
label={label}
checked={checked}
onChange={onChange}
className={classNames(
className,
styles.vanity,
isHeader ? styles.vanityHeader : "",
)}
className={classNames(styles.vanity, isHeader ? styles.vanityHeader : "")}
/>
);
};
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,8 @@ export type CheckboxProps = {
* @param root0.className Optional styling classes
* @param root0.onClick Event listener for checkbox click
* @param root0.checked Boolean indicating whether the checkbox is checked
* @param root0.onChange - Event listener for checkbox change. Use this one
* over onClick if the component is controlled (ie checked is passed in)
* @returns A checkbox styled according to our design system
*/
const Checkbox: React.FC<CheckboxProps> = ({
Expand Down

0 comments on commit 0c18ae3

Please sign in to comment.