Skip to content

Commit

Permalink
fix forwardedRef prop type for CountrySelector
Browse files Browse the repository at this point in the history
  • Loading branch information
cdOut committed Nov 30, 2023
1 parent 81b829e commit 7a32ed0
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/components/CountrySelector.js
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ import useThemeStyles from '@styles/useThemeStyles';
import ROUTES from '@src/ROUTES';
import FormHelpMessage from './FormHelpMessage';
import MenuItemWithTopDescription from './MenuItemWithTopDescription';
import refPropTypes from './refPropTypes';

const propTypes = {
/** Form error text. e.g when no country is selected */
Expand All @@ -23,7 +24,7 @@ const propTypes = {
inputID: PropTypes.string.isRequired,

/** React ref being forwarded to the MenuItemWithTopDescription */
forwardedRef: PropTypes.func,
forwardedRef: refPropTypes,
};

const defaultProps = {
Expand Down

0 comments on commit 7a32ed0

Please sign in to comment.