Skip to content

Commit

Permalink
Update missed jsdoc comments.
Browse files Browse the repository at this point in the history
  • Loading branch information
NickPhura committed Jan 16, 2025
1 parent 0665a0a commit 1c5f733
Showing 1 changed file with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -36,15 +36,15 @@ interface IDualAutocompleteFieldProps<TCategory extends string | number, TUnit e
*/
getUnitOptions: (categoryId: TCategory) => { label: string; value: TUnit }[];
/**
* The units data to display in the SECOND autocomplete field, based on the selected category.
* The options to display in the unit field, based on the selected category.
*/
getUnitAutocompleteLabel?: (categoryId: TCategory) => string;
/**
* Gets the formik field name. Useful for when qualitative and quantitative values have different property names (eg. value vs. qualitative_option_id)
* Get the formik field name for the unit field.
*/
getUnitFormikFieldName: (categoryId: TCategory) => string;
/**
* Callback for when the delete button is clicked.
* Callback fired when the delete button is clicked.
*/
onDelete: () => void;
}
Expand Down

0 comments on commit 1c5f733

Please sign in to comment.