feat: allow both number and string values as sampleValue

This commit is contained in:
kasia.oczkowska
2024-10-10 09:21:03 +01:00
parent 9250456e7b
commit 05a3016557
2 changed files with 3 additions and 2 deletions

View File

@@ -40,7 +40,7 @@ SuggestionItem.propTypes = {
data: PropTypes.arrayOf(
PropTypes.shape({
label: PropTypes.string,
sampleValue: PropTypes.string,
sampleValue: PropTypes.oneOfType([PropTypes.string, PropTypes.number]),
}),
).isRequired,
onSuggestionClick: PropTypes.func.isRequired,